Trying to get authlogic running
This commit is contained in:
parent
06f09c0486
commit
737ff62cfc
23 changed files with 306 additions and 4 deletions
|
|
@ -1,2 +1,5 @@
|
|||
class User < ActiveRecord::Base
|
||||
acts_as_authentic do |c|
|
||||
c.login_field = 'email'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
7
app/models/user_session.rb
Normal file
7
app/models/user_session.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# User sessions. Refers to the "User" class automatically (by its name).
|
||||
# See also: https://github.com/binarylogic/authlogic
|
||||
class UserSession < Authlogic::Session::Base
|
||||
# specify configuration here, such as:
|
||||
# logout_on_timeout true
|
||||
# ...many more options in the documentation
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue