Skip to content

Commit

Permalink
FIX: Filter open-id logins by identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Jul 25, 2018
1 parent 637850d commit 776fd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/open_id_authenticator.rb
Expand Up @@ -14,7 +14,7 @@ def enabled?
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

Expand Down

0 comments on commit 776fd0d

Please sign in to comment.