From 67cc2c1a87023b1e1e32e823562aa206207691b3 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 16 Aug 2019 15:36:15 +0200 Subject: [PATCH] SessionController: remove instructeur_signed_in? --- app/controllers/users/sessions_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index 0be89dfdf..c4cc670cf 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -20,9 +20,7 @@ class Users::SessionsController < Devise::SessionsController if user_signed_in? current_user.update(loged_in_with_france_connect: nil) - end - if instructeur_signed_in? || user_signed_in? set_flash_message :notice, :signed_in redirect_to after_sign_in_path_for(:user) else