demarches-normaliennes/app/controllers/gestionnaires/sessions_controller.rb

20 lines
397 B
Ruby
Raw Normal View History

class Gestionnaires::SessionsController < Sessions::SessionsController
def demo
@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