Draiken
unread,Mar 30, 2011, 1:29:21 PM3/30/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
Hi, I am migrating our system from Authlogic to Devise, and also we
have an old users database that we need to mantain, but their
passwords were stored with md5.
On authlogic I just created a method to check if crypted password was
empty and his password was == to the md5 one, then set the password
for the recieved one and saved the user, so he now logs in with the
bcrypt password. This method was called on the UserSessions
controller.
Now I am not sure where to put this verification on Devise and I'm
looking for the best solution for this.
Thanks !