SessionController: remove instructeur_signed_in?
This commit is contained in:
parent
a3b9bf90d4
commit
67cc2c1a87
1 changed files with 0 additions and 2 deletions
|
@ -20,9 +20,7 @@ class Users::SessionsController < Devise::SessionsController
|
||||||
|
|
||||||
if user_signed_in?
|
if user_signed_in?
|
||||||
current_user.update(loged_in_with_france_connect: nil)
|
current_user.update(loged_in_with_france_connect: nil)
|
||||||
end
|
|
||||||
|
|
||||||
if instructeur_signed_in? || user_signed_in?
|
|
||||||
set_flash_message :notice, :signed_in
|
set_flash_message :notice, :signed_in
|
||||||
redirect_to after_sign_in_path_for(:user)
|
redirect_to after_sign_in_path_for(:user)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue