diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-23 16:44:46 -0800 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-23 16:44:46 -0800 |
commit | fdf68a8d4dec9000ec1e48f66ad64d63050685a1 (patch) | |
tree | db97c2deb43fc45d50b73d31d520925e5e99663e /app/controllers/sessions_controller.rb | |
parent | 5409fc49bd7fb1e24f048ec5b8931b216b6ceda8 (diff) | |
download | gitlab-ce-fdf68a8d4dec9000ec1e48f66ad64d63050685a1.tar.gz |
Skip the 2FA requirement during logoutrs-skip-2fa-on-signout
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r-- | app/controllers/sessions_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 825f85199be..44eb58e418b 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -2,6 +2,8 @@ class SessionsController < Devise::SessionsController include AuthenticatesWithTwoFactor include Recaptcha::ClientHelper + skip_before_action :check_2fa_requirement, only: [:destroy] + prepend_before_action :authenticate_with_two_factor, only: [:create] prepend_before_action :store_redirect_path, only: [:new] before_action :auto_sign_in_with_provider, only: [:new] |