FIX: Filter open-id logins by identifier

This commit is contained in:
David Taylor 2018-07-25 11:47:09 +01:00
parent 637850d867
commit 776fd0de66
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Auth::OpenIdAuthenticator < Auth::Authenticator
end
def description_for_user(user)
info = UserOpenId.find_by(user_id: user.id)
info = UserOpenId.where("url LIKE ?", "#{@identifier}%").find_by(user_id: user.id)
info&.email || ""
end