Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>If</strong> I understood correctly you are after a solution for <code>Forgot Password</code> . If this is the case , the obvious scenario is that the user does not remember current password and wants to set a new password .</p> <p>I assume that you have a <code>Forgot Password</code> link which leads to a <code>Forgot Password</code> page where the user enters <code>Email Address</code> and clicks Next .</p> <p>If your system already stored secret question(s) and answer(s) , you can add steps to check at least one of those here otherwise just continue further :</p> <ul> <li>Validate <code>Email Address</code> .</li> <li>If the <code>Email Address</code> exists , continue further . Otherwise display message to user .</li> <li>Generate a ( lengthy ) <code>Random String</code> .</li> <li>Save the <code>Random String</code> in the ( user ) table for that user .</li> <li>Make a <code>Link</code> and put <code>Email Address</code> and <code>Random String</code> in it .</li> <li>Make an email which includes the <code>Link</code> and send it to the <code>Email Address</code> .</li> </ul> <p>Now user receives the email and clicks the <code>Link</code> :</p> <ul> <li>Parse the <code>Link</code> to get <code>Email Address</code> and <code>Random String</code> .</li> <li>Validate <code>Email Address</code> and <code>Random String</code> .</li> <li>If the <code>Email Address</code> and <code>Random String</code> combination exists , continue further . Otherwise display message to user .</li> <li>Display a form for the user to enter <code>New Password</code> twice .</li> <li>Save the <code>New Password</code> for the user .</li> </ul> <p>Now you can either <code>Sign In</code> the user automatically or show <code>Sing In</code> page for the user to sign in with the new credentials .</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload