TransWikia.com

Set duration of 'newpassword' link validity via config/general?

Craft CMS Asked by James Greig on November 14, 2020

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?)

One Answer

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 crafthelpersConfigHelper::durationInSeconds() for a list of supported value types)

Correct answer by James Greig on November 14, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP