Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-29T16:51:01.350Z
Answers.Text: Feel free to mark your own as the accepted answer! ;)
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-29T18:43:07.273Z
Answers.Text: Ha thanks @RitterKnight I do love being right, rarely as it does happen :)
Answers.UserDisplayName: James Greig
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-27T11:25:38.780Z
Answers.LastActivityDate: 2020-07-27T11:25:38.780Z
Answers.UserDisplayName: James Greig
Body: <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>
  
Tags: <config><password>
Title: Set duration of 'newpassword' link validity via config/general?
ThreadText: # 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 :)  
  
  ---
  
  