mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Basic login
This commit is contained in:
parent
ba93ac8162
commit
c997f2da5d
18 changed files with 428 additions and 3 deletions
10
app/controllers/sessions_controller.rb
Normal file
10
app/controllers/sessions_controller.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class SessionsController < Devise::SessionsController
|
||||
def create
|
||||
@user = User.find_by(identity_code: '37810013855')
|
||||
sign_in_and_redirect @user, :event => :authentication
|
||||
end
|
||||
|
||||
def login
|
||||
render 'layouts/login', layout: false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue