Skip the 2FA requirement during logout

This commit is contained in:
Robert Speicher 2016-01-23 16:44:46 -08:00
parent 5409fc49bd
commit fdf68a8d4d
1 changed files with 2 additions and 0 deletions

View File

@ -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]