<p>Pretty sure the <a href="https://craftcms.com/docs/config-settings#invalidUserTokenPath" rel="nofollow noreferrer">invalidUserTokenPath</a> config setting is what you're looking for.</p>

CC BY-SA 3.0
2016-11-30T21:11:43.943Z
2016-11-30T21:11:43.943Z
Brad Bell
<p>In <strong>config.php</strong> file, <code>setPasswordPath</code> is set to match a custom template. This is working fine by following the reset password link sent by email (for a front end user).</p>

<p>But after I've changed the password (with <code>users/setPassword</code> action), if I click again on the reset password link in the email, I am redirected to a page within the default Craft template that inform me that the verification code is now wrong.</p>

<p>How can I also set a custom template for this page?</p>

<config><password><link>
How to keep the setPasswordPath config when reset password link is expired?
# How to keep the setPasswordPath config when reset password link is expired?

(Asked by: username_0 on 2016-11-30)

In **config.php** file, `setPasswordPath` is set to match a custom template. This is working fine by following the reset password link sent by email (for a front end user).

But after I've changed the password (with `users/setPassword` action), if I click again on the reset password link in the email, I am redirected to a page within the default Craft template that inform me that the verification code is now wrong.

How can I also set a custom template for this page?

**Tags:** config, password, link

---

## 1 answers

### Answer by username_1 on 2016-11-30. Score: 3 | Accepted answer

Pretty sure the [invalidUserTokenPath](https://craftcms.com/docs/config-settings#invalidUserTokenPath) config setting is what you're looking for.


---

