mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
FIX: Extra comma resulted in Github auth email result being an array.
https://meta.discourse.org/t/github-2fa-flow-broken/88674
This commit is contained in:
@ -41,7 +41,7 @@ class Auth::GithubAuthenticator < Auth::Authenticator
|
||||
# If there's existing user info with the given GitHub ID, that's all we
|
||||
# need to know.
|
||||
user = user_info.user
|
||||
result.email = data[:email],
|
||||
result.email = data[:email]
|
||||
result.email_valid = data[:email].present?
|
||||
else
|
||||
# Potentially use *any* of the emails from GitHub to find a match or
|
||||
|
Reference in New Issue
Block a user