2015-12-09 15:10:11 +01:00
|
|
|
class Gestionnaires::SessionsController < Sessions::SessionsController
|
2016-02-15 17:13:16 +01:00
|
|
|
def demo
|
2016-02-19 15:04:29 +01:00
|
|
|
return redirect_to root_path if Rails.env.production?
|
|
|
|
|
2016-02-15 17:13:16 +01:00
|
|
|
@gestionnaire = Gestionnaire.new(email: 'gestionnaire@apientreprise.fr', password: 'password')
|
|
|
|
render 'new'
|
|
|
|
end
|
2015-09-22 10:15:12 +02:00
|
|
|
|
|
|
|
def new
|
|
|
|
@gestionnaire = Gestionnaire.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def after_sign_in_path_for(resource)
|
|
|
|
# stored_location_for(resource) ||
|
|
|
|
backoffice_path
|
|
|
|
end
|
|
|
|
end
|