I am developing a Rails 3.0 application and using OmniAuth + Identity to authenticate registration. I implemented a User model bound to an Identity model through a foreign key, and everything works fine. Now I want to implement the forgotten password function.
Given the user's email, I want to send them an email with a link to reset their password. The email contains a random sixth line associated with the user.
Now, how do I reset the Identity user password?
In the Identity database table, it is stored as password_digest. Can I just rewrite this?
source share