How to implement forgot password using seurityquestion method?

How to implement forgot password feature in login screen using a security question method?

Based on existing User.

Thank you.

I think for this feature, first you need to store selected security question and answer submitted by user in a table.

When user clicks on forgot password : on forgot password screen, you can ask user to answer the security question and ask for some unique identifier in the application like username, email etc. When user submit security question answer check it against database and if pass then proceed with forgot password request otherwise show error.

Hi Subhash,

Have you got your answer?

if not then you can take reference from below -

and you can save security questions in Db and check them while login.

If I got another solution on the same topic then I will share you soon.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.