Password Reminder code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bubberz
Forum Newbie
Posts: 14
Joined: Wed Jul 13, 2005 12:05 pm

Password Reminder code

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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:
bubberz
Forum Newbie
Posts: 14
Joined: Wed Jul 13, 2005 12:05 pm

Post by bubberz »

Jcart!

Great question! I'm storing the password in the db, and would like to send it to the user.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Sorry I meant to ask, are you storing your passwords in plain text (BAD!!) or hashing or encrypting them?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Do you have any sort of "secret question" system?
bubberz
Forum Newbie
Posts: 14
Joined: Wed Jul 13, 2005 12:05 pm

Post 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!
Post Reply