I am using a device with rails 3. In the user model, I created fields for the question and the answer to this question.
I want to know how I can implement a forget password in the following logic:
- On the page with the password "forget password", the user enters the username
- In the next step, the application should display the question stored in db.
- The user answers the question, and the application matches the answer if the answer matches the values stored in db.
- It redirects the password editing page where the password can be updated.
I tried to override the controller password but got stuck.
Thanks for the help in advance.
Note: I am new to rails and my first project
source
share