new demo link on home page
This commit is contained in:
parent
fbeb503d9e
commit
cbb5737fdf
5 changed files with 12 additions and 7 deletions
|
@ -4,8 +4,7 @@ class Users::SessionsController < Sessions::SessionsController
|
|||
def demo
|
||||
return redirect_to root_path if Rails.env.production?
|
||||
|
||||
@user = User.new(email: 'demo@tps.fr', password: 'password')
|
||||
|
||||
@user = User.new(email: DemoEmails[:user], password: 'password')
|
||||
render 'new'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue