2015-12-09 15:10:11 +01:00
|
|
|
class Administrateurs::SessionsController < Sessions::SessionsController
|
2016-02-19 17:27:14 +01:00
|
|
|
def demo
|
|
|
|
return redirect_to root_path if Rails.env.production?
|
|
|
|
|
|
|
|
@administrateur = Administrateur.new(email: 'admin@tps.fr', password: 'password')
|
|
|
|
render 'new'
|
|
|
|
end
|
2015-10-23 16:19:55 +02:00
|
|
|
|
|
|
|
def new
|
|
|
|
@administrateur = Administrateur.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def after_sign_in_path_for(resource)
|
2015-10-26 15:54:20 +01:00
|
|
|
admin_procedures_path
|
2015-10-23 16:19:55 +02:00
|
|
|
end
|
|
|
|
end
|