News Feed
Sections




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

PHPEasyStep.com:
Sending forgotten password
May 29, 2006 @ 04:43:44

On PHPEasyStep.com, there's a new tutorial talking about adding "send forgotten password" functionality to your member site.

Mark Jackson is one of our member but he forgot his password for login to our website. We'll send him password to his e-mail address. In this tutorial create 2 file and 1 database - forgot_password.php, send_password_ac.php and the members database.

The rest of the tutorial is all code and SQL statements, including the HTML for the form the users fill out. Basically, it just grabs the password value from the database and sends it along in an email.

Of course, the structure is here for the application, but it's not very secure - sending the password in plain-text like that. Personally, I'd have md5 hashed passwords and reset the password to a new one each time the "request my password" was made. Then, they can come in and reset the paasword when they log in.

5 comments voice your opinion now!
send forgotten password database email form html send forgotten password database email form html


blog comments powered by Disqus

Similar Posts

DevShed.com: The Singleton and Factory Patterns in PHP - Working With Singletons

Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()

Code2Learn.com: Generating PDF files from Database using CodeIgniter

DevShed: Introduction to Using SQLite with PHP 5

Oren Solomianik's Blog: Zend Framework Database Admin


Community Events





Don't see your event here?
Let us know!


testing symfony2 framework unittest community install release laravel code podcast refactor opinion introduction language interview experience list developer series threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework