I'm looking to set up a php password recovery script, using a token which expires after 24 hours. But I'm not sure how to go about it. I have SHA1
encrypted user passwords at the moment. All I want to do I think is append a token to the URL which is sent to the user when they request a password reset. But how do I go about doing this properly and what do I need to store in the database?
The length of time that password reset tokens should be valid. They are valid for five minutes by default. See the config/sample-dsconfig-batch-files/support-password-reset-tokens. dsconfig batch file for more information about configuring the server to support password reset tokens.
$_GET['token']
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With