diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 825f85199bef03a33d4daa608bf0f5c38c88c06d..44eb58e418b96052dc34474c68acc2fb2b3cf64a 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]