Chomp Base64 emails.
This commit is contained in:
parent
af696b8768
commit
6c352cf5ae
@ -14,7 +14,7 @@ class AuthD::Request
|
|||||||
user = if l = @login
|
user = if l = @login
|
||||||
authd.user? l
|
authd.user? l
|
||||||
elsif mail = @email
|
elsif mail = @email
|
||||||
authd.users_per_email.get? Base64.encode(mail)
|
authd.users_per_email.get? Base64.encode(mail).chomp
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
@ -40,7 +40,7 @@ class AuthD::Service < IPC
|
|||||||
@users_per_login = @users.new_index "login", &.login
|
@users_per_login = @users.new_index "login", &.login
|
||||||
@users_per_email = @users.new_index "email" do |user|
|
@users_per_email = @users.new_index "email" do |user|
|
||||||
if mail = user.contact.email
|
if mail = user.contact.email
|
||||||
Base64.encode mail
|
Base64.encode(mail).chomp
|
||||||
else
|
else
|
||||||
""
|
""
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user