Introduction
In this post, you will learn how forget password mechanism works? It is been a million-dollar question and I have come with the exact answer.
How exactly forget password works?
- Firstly the user enter into the login page and tries to log in with username or password but most of them fail to log in with username and does it with user E-mail. But now the user comes to know he has forgotten the password.
- Now, the user click forget password. Once the user click, it redirects to a page and ask for the user given mail or username or phone number.
- Once the user give the required information, then a random string is created and then the string hashed and becomes temporary password.
- Then the user receives a mail attached link, and it looks something like
http://techyrick.com/forgotpassword.jsp?ID=01234567890ABCDEF
. - The above is the hashed password. Now the user can click on the link and generate a new password and can update.
Source: How it works
Also Read: What is a computer worm? How does it work
But how does the password send to the correct person?
Great question, It is because of GUID (Globally unique identifier). When user give forget password according to unique identifier, you are given the temporary hashed password link.
Also Read: What is a computer virus? Types of computer virus
Also Read: What is Trojan? Can Trojan create backdoor attack