mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
SECURITY: 2FA with U2F / TOTP
This commit is contained in:

committed by
Régis Hanol

parent
c3cd2389fe
commit
66f2db4ea4
@ -105,7 +105,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
end
|
||||
|
||||
def user_found(user)
|
||||
if user.totp_enabled?
|
||||
if user.has_any_second_factor_methods_enabled?
|
||||
@auth_result.omniauth_disallow_totp = true
|
||||
@auth_result.email = user.email
|
||||
return
|
||||
|
Reference in New Issue
Block a user