"Password Reset" Expiration

"Password Reset" Expiration

by Rob Cole -
Number of replies: 2

The email to reset a user's password currently has an expiration of 30 minutes. If you don't reset your password in 30 minutes, you have to ask to reset it again. How can I extend this expiration to 24 hours?

Average of ratings: -
In reply to Rob Cole

Re: "Password Reset" Expiration

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Not really a developer question, but:

Site admin > Security > Site policies > Maximum time to validate password reset request (pwresettime)

Technically, that only lets you go up to 4 hours.

If you really want 24 hours, you can add the following to your config.php:

$CFG->pwresettime = 86400;

Average of ratings: Useful (1)
In reply to Davo Smith

Re: "Password Reset" Expiration

by Rob Cole -

Thank you so much for responding to my post. I really appreciate the reply. Sorry for posting to the wrong board.