> I just upgraded from restful_authentication to devise, and before I
> found out there was a wiki on how to do this properly, I removed all
> traces of restful_authentication from my app, then installed Devise like
> I normally would.
>
> The issue I'm getting is I create an account, and when I confirm it, I
> get logged in. Once I log out and try to log back in, I get invalid
> username or email. I manually update my password, and I get the same
> error.
I had something similar when I ripped out Authlogic and wrote my own.
If I tried to log in to a pre-existing user account, instead of just
telling me the password was incorrect (which is what I expected) it
would give me an invalid salt error. I suppose I could've coded
around it, but since I was in early test mode I found it easier to
just delete the two or three old users and have my new authentication
handle the new salt/encryption mechanism.
I would tend to concur with Paul. When you create a user, you are
likely not logging that user in using the same encryption method as
when you just log in.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment