Now I know what the problem is.
I always get an "loging unsuccessful" even I use the right
username/password.
I did some debug to see what went wrong, the "login" in UserController
will always return with "nil" and that is why.
I added an "raise" in
/vendor/plugin/login_engine/lib/login_engine/authenticated_user.rb
def authenticate(login, pass)
raise "login is #{login} , and pass is #{pass}"
u = find(:first, :conditions => ["login = ? AND verified = 1 AND
deleted = 0", login])
return nil if u.nil?
find(:first, :conditions => ["login = ? AND salted_password = ?
AND verified = 1", login, AuthenticatedUser.salted_password(u.salt,
AuthenticatedUser.hashed(pass))])
end
But I never see the raise is being called. How should I debug this
problem?
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org