Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-12-27, 12:39 PM
Junior Member
 
Join Date: Dec 2006
Posts: 2
coop10 is on a distinguished road
Default User Authentication

User Authentication

Hi all,

Still new to php so I'll try and explain my problem.
I'm trying to produce a User authentication page so a user can log in with a user name and password. I've worked out setting up the database and adding new users to the database. So now people can log into pages using there user_id and password which is checked on the MySQL database.
The problem comes when a user forgets there password and I wanted to send it to the email that they used in the registration. I'm using md5(), so the database contains a 32-character hash, it is possible to transfer this back to plain text.

Any help would be greatly apperciated. I'm usin fFlash for the front end but any help or tutorials would be fine.

c.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2006-12-27, 04:17 PM
Senior Member
 
Join Date: Jul 2006
Location: Prague, Czech Republic
Posts: 193
vladimir_cz is on a distinguished road
Send a message via ICQ to vladimir_cz Send a message via MSN to vladimir_cz Send a message via Yahoo to vladimir_cz Send a message via Skype™ to vladimir_cz
Default

very-very-very simple way:
1. generate temporary password by random function.
2. update database with this md5(password)
3. send email with this password to your client.

of course, there is few hidden stones. for example - someone can "reset" password for other user. and related.
__________________
Thank you. Vladimir, Czech Republic.
http://www.smartwebco.com/
I'm looking for job.
Reply With Quote
  #3 (permalink)  
Old 2007-01-13, 01:34 PM
Member
 
Join Date: Jan 2007
Location: SPb, Russia
Posts: 30
powerdesign is on a distinguished road
Default

Quote:
Originally Posted by vladimir_cz View Post
very-very-very simple way:
of course, there is few hidden stones. for example - someone can "reset" password for other user. and related.
this is not a problem because user will get an email with new pass anyway
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:02 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.