1

Is it possible to modify how long the 'newpassword' links are valid for via a setting in config/general.php?

(I've found defaultTokenDuration but it sounds like this might only be for the live preview tokens?)

2

The setting you're looking for is verificationCodeDuration which defaults to 24 hours (86400 seconds).

https://docs.craftcms.com/api/v3/craft-config-generalconfig.html#verificationcodeduration

(And see craft\helpers\ConfigHelper::durationInSeconds() for a list of supported value types)

2
  • Feel free to mark your own as the accepted answer! ;) Jul 29 '20 at 16:51
  • 1
    Ha thanks @RitterKnight I do love being right, rarely as it does happen :) Jul 29 '20 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.