Auth sign out (#2511)
* Add a spec for signing out * Add spec showing that suspended user gets a 403 forbidden on sign out * Allow suspended account users to sign out
This commit is contained in:
parent
bea97ea766
commit
268dd32d76
2 changed files with 28 additions and 0 deletions
|
@ -6,6 +6,7 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
layout 'auth'
|
||||
|
||||
skip_before_action :require_no_authentication, only: [:create]
|
||||
skip_before_action :check_suspension, only: [:destroy]
|
||||
prepend_before_action :authenticate_with_two_factor, if: :two_factor_enabled?, only: [:create]
|
||||
|
||||
def create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue