Page 1 of 1

Password Reminder code

Posted: Fri Dec 30, 2005 10:30 am
by bubberz
Newbie PHP-er here!

I'm trying to create a "Password Reminder" script, and am not too sure where to start.

Any suggestions?

Posted: Fri Dec 30, 2005 10:35 am
by John Cartwright
A couple questions:

How are you storing the passwords?
Do you want to return the original password or generate a new password?

This may be of interest to you if you are using mysql, viewtopic.php?p=226275#226275 :wink:

Posted: Fri Dec 30, 2005 10:40 am
by bubberz
Jcart!

Great question! I'm storing the password in the db, and would like to send it to the user.

Posted: Fri Dec 30, 2005 10:48 am
by John Cartwright
Sorry I meant to ask, are you storing your passwords in plain text (BAD!!) or hashing or encrypting them?

Posted: Fri Dec 30, 2005 11:15 am
by m3mn0n
Do you have any sort of "secret question" system?

Posted: Fri Dec 30, 2005 11:41 am
by bubberz
No, no question....I'm thinking I probably should.

No, no hashing....I'm thinking I should do this too.

Any suggestions are welcome! I want to do this right the first time....or at least as close as possible.

Thanks!