mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: Use user account email instead of auth email when totp is enabled.
https://meta.discourse.org/t/github-2fa-flow-broken/88674
This commit is contained in:
@ -120,6 +120,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
def user_found(user)
|
||||
if user.totp_enabled?
|
||||
@auth_result.omniauth_disallow_totp = true
|
||||
@auth_result.email = user.email
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user