AuthlogicRuby 认证解决方案
Authlogic 是一个简单的 Ruby 认证解决方案,支持 Rails 3 和 4,对 Rails 2 的支持请看 rail2 分支。
示例代码:
class UserSession < Authlogic::Session::Base
# specify configuration here, such as:
# logout_on_timeout true
# ...many more options in the documentation
end
class User < ActiveRecord::Base
acts_as_authentic do |c|
c.my_config_option = my_value
end # the configuration block is optional
end
评论
