2015-12-09 15:10:11 +01:00
|
|
|
class Sessions::SessionsController < Devise::SessionsController
|
|
|
|
before_action :before_sign_in, only: [:create]
|
|
|
|
|
|
|
|
def before_sign_in
|
|
|
|
sign_out :user if user_signed_in?
|
|
|
|
sign_out :gestionnaire if gestionnaire_signed_in?
|
|
|
|
sign_out :administrateur if administrateur_signed_in?
|
2016-02-23 16:51:24 +01:00
|
|
|
sign_out :administration if administration_signed_in?
|
2015-12-09 15:10:11 +01:00
|
|
|
end
|
|
|
|
end
|