diff --git a/app/controllers/france_connect/particulier_controller.rb b/app/controllers/france_connect/particulier_controller.rb index bad4501cb..118dbde01 100644 --- a/app/controllers/france_connect/particulier_controller.rb +++ b/app/controllers/france_connect/particulier_controller.rb @@ -1,4 +1,5 @@ class FranceConnect::ParticulierController < ApplicationController + def login client = FranceConnectParticulierClient.new @@ -94,6 +95,10 @@ class FranceConnect::ParticulierController < ApplicationController private def connect_france_connect_particulier user + sign_out :user if user_signed_in? + sign_out :gestionnaire if gestionnaire_signed_in? + sign_out :administrateur if administrateur_signed_in? + sign_in user user.loged_in_with_france_connect = 'particulier'