diff options
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r-- | app/controllers/sessions_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 61120c5b7d1..b8842b2efdb 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -300,13 +300,13 @@ class SessionsController < Devise::SessionsController def authentication_method if user_params[:otp_attempt] - "two-factor" + AuthenticationEvent::TWO_FACTOR elsif user_params[:device_response] && Feature.enabled?(:webauthn) - "two-factor-via-webauthn-device" + AuthenticationEvent::TWO_FACTOR_WEBAUTHN elsif user_params[:device_response] && !Feature.enabled?(:webauthn) - "two-factor-via-u2f-device" + AuthenticationEvent::TWO_FACTOR_U2F else - "standard" + AuthenticationEvent::STANDARD end end |