Basic login

This commit is contained in:
Martin Lensment 2014-09-25 13:12:44 +03:00
parent ba93ac8162
commit c997f2da5d
18 changed files with 428 additions and 3 deletions

View 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