我已经寻找了两天的解决方案,我的头撞到了墙上。我已经尝试了普通的authlogic构建和fork
authlogic or 'authlogic',:git => 'git://github.com/odorcicd/authlogic.git',:branch => 'rails3‘
我有一切工作,除了当我创建一个UserSession它不会采取的current_account细节,所以我离开与每次登录将允许您登录到任何子域。我似乎找不到一个解决这个问题的办法
def new @user_session = @current_account.user_sessions.new end
发布于 2010-11-20 00:23:52
我想这就是你想要的(从Not able to set a current_user using Authlogic on Rails 3.0.1)
class UserSession < Authlogic::Session::Base
allow_http_basic_auth false
endhttps://stackoverflow.com/questions/4197067
复制相似问题