Remove demo accounts routes
This commit is contained in:
parent
95b6ec2899
commit
b187e7163a
8 changed files with 3 additions and 98 deletions
|
@ -1,13 +1,6 @@
|
|||
class Administrateurs::SessionsController < Sessions::SessionsController
|
||||
layout "new_application"
|
||||
|
||||
def demo
|
||||
return redirect_to root_path if Rails.env.production?
|
||||
|
||||
@user = User.new(email: DemoEmails[:admin], password: 'password')
|
||||
render 'users/sessions/new'
|
||||
end
|
||||
|
||||
def new
|
||||
redirect_to new_user_session_path
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue