Sending member their password

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
dibyendra
Forum Newbie
Posts: 20
Joined: Tue Aug 12, 2003 2:26 am
Location: Nepal

Sending member their password

Post by dibyendra »

Hello Developers,

Many site has a feature of sending the requested password for their member to therir email assress automatically.How I can

implement this feature? My web site is hosted in Linux platform.
Thank you
Dibyendra
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Please read this viewtopic.php?t=11817

This is a question for the normal forum.

Also, please don't sticky all your topics - bad form.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Well it depends:

1. Are you storing a crypt()'d or md5()'d password or are you storing plaintext passwords? (If you are storing plaintext passwords, you should strongly consider changing....)

If your doing the "right thing" and stored encrypted passwords you can't recover their old password to send. So you'll have to create a new password, send it to them, then encrypt it and store it in the old place.

If you're storing plaintext passwords, you simply look up the password in your file/database along with the email address for that user and make the email.

Now that the general steps are outlined, which part are you having trouble with?
Post Reply