I am using devise with rails 3. In user model I have created fields for the question and answer to that question.
I want to know How I can implement forget password in following logic:
- On forget password page User enters the Username
- On Next step application should displays the question stored in db.
- User answers the question and app matches the answer if answer is matched with values stored in db.
- It redirects to edit password page where password can updated.
I tried to override password controller of devise but got stuck.
Thanks for help in advance.
Note: I am new to rails and its my first project