Tushar Gandhi
2009-Dec-23 12:50 UTC
Migration from the "Restful Authentication" to "Authlogic"
Hi,
I am using Authlogic for authentication.
Previously our application having a "Restful Authentication". We have
users who are created by using the "Restful Authentication".
My problem is these users will not able to login with Authlogic as the
password encryption methods are different for both and I am getting
"Password not valid" error.
So I searched for that and I got the solution like this:- Add following
lines in the users.rb
"# app/models/user.rb
class User < ActiveRecord::Base
acts_as_authentic do |c|
c.act_like_restful_authentication = true
end
end
"
Here is the link that I got the solution:-
http://www.binarylogic.com/2008/11/23/tutorial-easily-migrate-from-restful_authentication-to-authlogic/
By adding the code in the users.rb the existing users are able to login
but whenever I am creating a new user, it is not allowing me to log in.
It is giving me error "Password not valid"
Can anyone tell me how should I fix this?
It is very urgent.
Thanks,
Tushar Gandhi.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Seemingly Similar Threads
- Encrypting the password using Authlogic
- Encrypt a user password using "Authlogic"
- AuthLogic Question - one time password (persistence_token) - what config is required to use this???
- binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
- skip password validation in authlogic
