<p>The setting you're looking for is <code>verificationCodeDuration</code> which defaults to 24 hours (86400 seconds).</p>
<p><a href="https://docs.craftcms.com/api/v3/craft-config-generalconfig.html#verificationcodeduration" rel="nofollow noreferrer">https://docs.craftcms.com/api/v3/craft-config-generalconfig.html#verificationcodeduration</a></p>
<p>(And see craft\helpers\ConfigHelper::durationInSeconds() for a list of supported value types)</p>

CC BY-SA 4.0
2020-07-29T16:51:01.350Z
Feel free to mark your own as the accepted answer! ;)
RitterKnight
CC BY-SA 4.0
2020-07-29T18:43:07.273Z
Ha thanks @RitterKnight I do love being right, rarely as it does happen :)
James Greig
CC BY-SA 4.0
2020-07-27T11:25:38.780Z
2020-07-27T11:25:38.780Z
James Greig
<p>Is it possible to modify how long the 'newpassword' links are valid for via a setting in config/general.php?</p>
<p>(I've found <code>defaultTokenDuration</code> but it sounds like this might only be for the live preview tokens?)</p>

<config><password>
Set duration of 'newpassword' link validity via config/general?
# Set duration of 'newpassword' link validity via config/general?

(Asked by: username_0 on 2020-07-27)

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

**Tags:** config, password


---

## 1 answers

### Answer by username_0 on 2020-07-27. Score: 2 | Accepted 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 craft\helpers\ConfigHelper::durationInSeconds() for a list of supported value types)

> **Comments:**
> **username_1**: Feel free to mark your own as the accepted answer! ;)  
> **username_0**: Ha thanks @username_1 I do love being right, rarely as it does happen :)  

---

