gongpex Posted October 17, 2014 Share Posted October 17, 2014 Hello everyone, If user forgot their password , they usually asked to give their email and then their password sent from web service into their email automatically, Q : Can somebody give me tutorial about this? please help Thanks Link to comment Share on other sites More sharing options...
niche Posted October 17, 2014 Share Posted October 17, 2014 This will get you started: http://www.w3schools.com/php/php_ref_mail.asp Link to comment Share on other sites More sharing options...
Ingolme Posted October 17, 2014 Share Posted October 17, 2014 Their password is never sent to them, that would be a big security vulnerability. It's not easy. Here's one tutorial: http://code.tutsplus.com/tutorials/creating-an-advanced-password-recovery-utility--net-4741 Link to comment Share on other sites More sharing options...
davej Posted October 17, 2014 Share Posted October 17, 2014 As you think through this you will see there is an advantage to having at least some sort of secondary id or "security question" from users. If someone breaks into their e-mail account the hacker will be stopped from changing their password by the security question. You never e-mail a password and you never store a raw password in a database. Link to comment Share on other sites More sharing options...
abbeyclassiclee Posted October 18, 2014 Share Posted October 18, 2014 It is easy u may just say<?phpinclude("db.php");/*Just fetch a new password for the person*/$rand=rand(0,100);$email='user@mail.com';$data=mysql_query("UPDATE user SET password='$rand' WHERE email='$email');mail($email,"Your Forgotten Password","Your forgotten password for e.g www.nextnaija.com is $rand Keep it safe","From: admin@nextnaija.com");?>Dats all enhance it with your forms you should be able it is just a hint Link to comment Share on other sites More sharing options...
Ingolme Posted October 18, 2014 Share Posted October 18, 2014 This makes it really easy for vandals to just change anybody's password whenever they want. It is also really easy to hack with SQL injection. The MySQL library is deprecated due to security vulnerabilities, you should use MySQLi or PDO. Link to comment Share on other sites More sharing options...
guruparthi Posted October 27, 2014 Share Posted October 27, 2014 (edited) The concept is below: Make form to get email address from user check whether the email address is present in table or not If present, retrieve password from table send retrieved password to given email address using email() in PHP Edited October 27, 2014 by Ingolme Advertising Link to comment Share on other sites More sharing options...
davej Posted October 27, 2014 Share Posted October 27, 2014 * If present, retrieve password from table You should never put a raw password into a table. Every stored password should be hashed with a unique salt. Link to comment Share on other sites More sharing options...
abbeyclassiclee Posted October 29, 2014 Share Posted October 29, 2014 I just Made An easy Way seems That what he Ask For Add Concepts Too Your Registration Like Security questions And Answers If Person Wants to Register Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now