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
Sending member their password
Moderator: General Moderators
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.
This is a question for the normal forum.
Also, please don't sticky all your topics - bad form.
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?
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?