Forum Moderators: coopster
I did some research and it seems so complex that it needs it's own script (pl, cgi) while I thought just a few php code lines would do the job.
If someone knows how to do just that (php or script), please let me know.
Thanks,
Richard
1 show forgot password form - email and security question
2 user submits form
3 check email and security question answer against database
4 generate a new random password
5 md5 new random pass
6 write new pass to password column in database
7 set a flag for user to change password on next login (optional)
8 send email to email address entered
done
>> needs it's own script
usually does
The security measures you take always depend on what you trying to protect.
This can prevent someone from just entering an e-mail address and getting the password changed. Only the person who has access to the mail account can in affect, initiate the change.
dc