Forgot password script. Posting of login details by emailIf you are developing a member sign up system, you must think of a forgot password facility for your members. Members will use this facility to get their lost or forgot password with login user-id. To verify the details of the member we will ask for the email address. Here the intention is to send the login details to the members email address. We will not display the login details to the screen. Definitely the owner of the email address can only open the mail and read the login details. Here first we will ask the member to enter email address by submitting a form. Then we will check the format of the email address and if correct then we will collect the id and password from the member table. If email address is not there then we will display one error message saying that email address is not there with us, so the visitor can signup as a new member. Here we have used the same member table plus_signup which we have used in our signup tutorial and login tutorial, so this can be used as a single script.
If we are storing password in the table then we can send them to user provided email address but this is not a good practice and usually password is encrypted before storing in table. Here we can't send the password to user email address, we have to send one random token or activation key to user email to reset password. Here it is ..PHP forum to post your bugs,errors etc.
As you have seen here we can send the lost password to the email address of the member. But if the password is encrypted and stored then we can't retrieve the lost password, so we will generate one activation key and ask the member to use that to reset the forgot password.
|This is a basic script only for easy understanding|
Read the tutorial on online membership management script with encrypted password system
Number of User Comments : 14
|yah!! this article is really helpful for me.|
|Hi ahm is this script running 100%? coz ahm i will be using this script|
|I used the script above (I am not encrypting at this time). However, when I place my email address in my forgot password form, I receive the message "Your email address is not correct". I checked the database and my email address is there. Help!|
|The checking of email address is done by ensuring presence of @ and . in you email address. So it should work. Just try to print once above the checking conditions.|
|is this really working... i need this tutorial for our website thank you.|
|Yes!! Really a fantastic script without any fees.|
|My database has multiple tables in it. How do I get the script to access the right table? It keeps returning saying email address is not correct even though it is.|
|I have tried and tried to make this script work in our website however, it keeps displaying "There is some system problem in sending login details to your address. Please contact site-admin." Please HELP!|
|Contact your host asking about sending mail. Or Just check if mail function is working in your site or not.|
|Every thing works fine except forgot password. Is there any alternative way to give site_url ???|
|if my passwords in database hash(encrypted) what i should i do?|
|hi gud concept|
|Then what is the answer|