Trying to get authlogic running

This commit is contained in:
Christoph Haas 2015-07-13 18:42:36 +02:00
parent 06f09c0486
commit 737ff62cfc
23 changed files with 306 additions and 4 deletions

View file

@ -1,2 +1,5 @@
class User < ActiveRecord::Base
acts_as_authentic do |c|
c.login_field = 'email'
end
end

View 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