<p>The <a href="http://buildwithcraft.com/docs/config-settings#verificationCodeDuration" rel="noreferrer">verificationCodeDuration</a> config setting is what you're looking for.  Defaults to 24 hours.</p>

CC BY-SA 3.0
2015-03-10T21:34:39.830Z
Thanks Brad!  Must have had my eyes closed while I was looking. Heh.
jooosh
CC BY-SA 3.0
2017-01-31T17:04:12.060Z
@bradbell is there a way to show a custom page/error massage if the verification link has expired?
Terry Upton
CC BY-SA 3.0
2015-03-10T16:49:50.540Z
2015-03-10T16:49:50.540Z
Brad Bell
<p>Does the "Activate your account" link, in emails sent to new users, have an timeframe for expiration?  I've had a few of my users run into a "Invalid verification code" error when clicking on the link, after waiting a couple days. If I resend the email, and they click on it within a few hours there's no issue.</p>

<p>I've looked through the docs and posts here and don't see any reference to one.  If there is a default expiration, is this something I can override?</p>

<p>Thanks!</p>

<users><login>
New user registration activation timeout?
# New user registration activation timeout?

(Asked by: username_0 on 2015-03-10)

Does the "Activate your account" link, in emails sent to new users, have an timeframe for expiration? I've had a few of my users run into a "Invalid verification code" error when clicking on the link, after waiting a couple days. If I resend the email, and they click on it within a few hours there's no issue.

I've looked through the docs and posts here and don't see any reference to one. If there is a default expiration, is this something I can override?

Thanks!

**Tags:** users, login


---

## 1 answers

### Answer by username_1 on 2015-03-10. Score: 5 | Accepted answer

The [verificationCodeDuration](http://buildwithcraft.com/docs/config-settings#verificationCodeDuration) config setting is what you're looking for. Defaults to 24 hours.

> **Comments:**
> **username_0**: Thanks Brad!  Must have had my eyes closed while I was looking. Heh.  
> **username_2**: @bradbell is there a way to show a custom page/error massage if the verification link has expired?  

---

