I have this php code if the user forgets the password, he needs to enter his email to login. It successfully sends an email with a new random generated password. But when the user logins with the new password. It doesn't login. You have to use your old password. The new password does not update in the database. What is the problem here?
The problem lies in with your database. How many layers does does your database have? i guess its user name and password, but how about the new password? Ill advise that you look on your code and specifically block of code which performs operations on the database. It seems like the old password is still retained,doesn't update as the new password is generated.
If a new password is generated_then. This is probably the command that can resolve the problem of the password being updated.
Look forward to your feedback
Aug 18th, 2013
Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.