Chomp Base64 emails.

master
Philippe Pittoli 2024-03-19 02:03:55 +01:00
parent af696b8768
commit 6c352cf5ae
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class AuthD::Request
user = if l = @login
authd.user? l
elsif mail = @email
authd.users_per_email.get? Base64.encode(mail)
authd.users_per_email.get? Base64.encode(mail).chomp
else
nil
end

View File

@ -40,7 +40,7 @@ class AuthD::Service < IPC
@users_per_login = @users.new_index "login", &.login
@users_per_email = @users.new_index "email" do |user|
if mail = user.contact.email
Base64.encode mail
Base64.encode(mail).chomp
else
""
end