Search: try to match the email address too.
parent
494b0b3719
commit
4a10456f27
|
@ -28,6 +28,8 @@ class AuthD::Request
|
||||||
else
|
else
|
||||||
pattern =~ full_name.as_s
|
pattern =~ full_name.as_s
|
||||||
end
|
end
|
||||||
|
end || u.contact.email.try do |email|
|
||||||
|
pattern =~ email
|
||||||
end
|
end
|
||||||
Baguette::Log.debug "#{u.login} matches #{pattern}"
|
Baguette::Log.debug "#{u.login} matches #{pattern}"
|
||||||
matching_users << u.to_public
|
matching_users << u.to_public
|
||||||
|
|
Loading…
Reference in New Issue