Page 1 of 1

Sending member their password

Posted: Tue Aug 19, 2003 9:12 pm
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

Posted: Tue Aug 19, 2003 9:23 pm
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.

Posted: Tue Aug 19, 2003 10:01 pm
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?