Search: try to match the email address too.

master
Philippe Pittoli 2024-02-17 18:13:12 +01:00
parent 494b0b3719
commit 4a10456f27
1 changed files with 8 additions and 6 deletions

View File

@ -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