+ 1

How to add forgot your password to login form php MySQL

Hello guys in this question I want to ask how to add forgot your password to login form php MySQL

17th May 2020, 12:38 AM
Yasser Kad
Yasser Kad - avatar
1 Respuesta
+ 1
This isn't something that has a definitive answer. It depends on how you implemented the login system. But the general logic behind is as follows: Forgot password buttons redirects you to a page which prompts you for the email address you signed up with. Then you can send an email to that address with a URL with a UUID that pairs the password reset request to the user (MAKE SURE THIS CHANGES EVERYTHING THE USER RESETS THEIR PASSWORD). The link will bring them to a page that prompts them to reset their password. The page will read the UUID from the get parameters and search in a database that pairs the UUID to the user account. Once the user submits the password reset request, the server will follow the same password preparation protocols (hashing, salting, etc.) and then replace the old password in the user database with the new password
29th May 2020, 3:34 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar