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