Demo sign_in page for users and gestionnaires
This commit is contained in:
parent
a20daa2ea2
commit
419f74948a
5 changed files with 26 additions and 8 deletions
|
@ -1,10 +1,16 @@
|
|||
class Users::SessionsController < Sessions::SessionsController
|
||||
# before_filter :configure_sign_in_params, only: [:create]
|
||||
|
||||
def demo
|
||||
@user = User.new(email: 'demo@tps.fr', password: 'password')
|
||||
|
||||
render 'new'
|
||||
end
|
||||
|
||||
# GET /resource/sign_in
|
||||
# def new
|
||||
# super
|
||||
# end
|
||||
def new
|
||||
@user = User.new
|
||||
end
|
||||
|
||||
#POST /resource/sign_in
|
||||
def create
|
||||
|
@ -13,7 +19,7 @@ class Users::SessionsController < Sessions::SessionsController
|
|||
current_user.update_attributes(loged_in_with_france_connect: '')
|
||||
end
|
||||
|
||||
# DELETE /resource/sign_out
|
||||
# DELETE /resource/sign_out
|
||||
def destroy
|
||||
connected_with_france_connect = current_user.loged_in_with_france_connect
|
||||
current_user.update_attributes(loged_in_with_france_connect: '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue