Chomp Base64 emails.
This commit is contained in:
parent
af696b8768
commit
6c352cf5ae
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user