I have a PHP and database setup and now I am wanting to know if there is a way to make a PHP page to reset the password and send a security code to the there email.
If you have any advice plz let me know
i can ass the code if you ask.
I have a PHP and database setup and now I am wanting to know if there is a way to make a PHP page to reset the password and send a security code to the there email.
If you have any advice plz let me know
i can ass the code if you ask.
There are a few ways to do this. You mentioned security code which to me means MFA. Is that what you want or do you just want a link to be emailed to the email on file to reset the password?
There is but there are a few steps to make.
https://mysite.com/password-reset/verify-token.php?token=abcdefghijklmnopqrstuvw1234567890
The reset-password form and the submit action of the reset-password form should only be executed or shown when you have a valid token and a valid user. The best thing is in my opinion to keep the token into the url until the password has been updated AND to verify that token on every request.
I am sending you a copy of my files by dropbox maybe you could look over the code and tell me where i would enter that.
I have a system in place but it says it sent the email but is never recived, there is not errors
Start with a new form where you can only enter a mailaddress and after submission try to write some code that checks if the given mailaddress exists in your user database table