Fix features flip on user connection for unified_login

This commit is contained in:
Xavier J 2016-10-20 11:48:40 +02:00
parent a7166d306f
commit 32d70bd909
2 changed files with 6 additions and 4 deletions

View file

@ -23,16 +23,16 @@ class Users::SessionsController < Sessions::SessionsController
#POST /resource/sign_in
def create
try_to_authenticate(User)
try_to_authenticate(Gestionnaire)
try_to_authenticate(Gestionnaire) if Features.unified_login
if user_signed_in?
current_user.update_attributes(loged_in_with_france_connect: '')
end
if gestionnaire_signed_in?
redirect_to backoffice_path
elsif user_signed_in?
if user_signed_in?
redirect_to after_sign_in_path_for(:user)
elsif gestionnaire_signed_in?
redirect_to backoffice_path
else
new
render :new, status: 401

View file

@ -1 +1,3 @@
remote_storage: true
unified_login: false
opensimplif: false