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
bubberz
Forum Newbie
Posts: 14 Joined: Wed Jul 13, 2005 12:05 pm
Post
by bubberz » Fri Dec 30, 2005 10:30 am
Newbie PHP-er here!
I'm trying to create a "Password Reminder" script, and am not too sure where to start.
Any suggestions?
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Fri Dec 30, 2005 10:35 am
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
bubberz
Forum Newbie
Posts: 14 Joined: Wed Jul 13, 2005 12:05 pm
Post
by bubberz » Fri Dec 30, 2005 10:40 am
Jcart!
Great question! I'm storing the password in the db, and would like to send it to the user.
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Fri Dec 30, 2005 10:48 am
Sorry I meant to ask, are you storing your passwords in plain text (BAD!!) or hashing or encrypting them?
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Fri Dec 30, 2005 11:15 am
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 » Fri Dec 30, 2005 11:41 am
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!