Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
Creating an Advanced Password Recovery Utility
May 06, 2009 @ 13:47:49

On the NETTUTS site today there's a new article (continuing on from this tutorial) looking at how to make a "forgot your password" system to add on to their current login technique.

In my last tutorial, 'A Better Login System', a few people commented on how they would like to see a tutorial on password recovery, which is something you don't always see in user access tutorials. The tutorial I am bringing you today will deal with just that. Using mySQLi, we will learn to recover unencrypted and (one-way) encrypted passwords.

They give you what you'll need to set up the database for the user information and the PHP code you'll need to connect to it and fetch the user's information. The script then generates an email with a custom link that will take the user to a page asking them to answer a security question before they can continue.

tagged: password recovery security question link email login

Link:


Trending Topics: