On this page
What this issue is
When someone clicks "Forgot password", your site emails them a link with a secret token (a one-time code that proves the request is genuine). The link should open a page where they set a new password. This issue is when that link gives a 404, an "invalid or expired" message, a blank page or a server error instead.
It affects shops with customer accounts, membership sites, course platforms, client portals and any site with a login.
Why it costs you leads or sales
People who reset a password usually want to do something right now: buy again, log in to a course, book or pay an invoice. If the link fails, many give up or buy elsewhere. Others open support tickets, which costs time. The problem is also silent: you only hear about it from the few who complain.
- Forgot passwordCustomer submits email
- Reset emailArrives in inbox
- Click linkError or invalid token
- New passwordNever set
- Login and purchaseLost
The customer does everything right, but the link fails and the later steps never happen.
Example: of 100 people who request a reset, a working link lets most finish; a broken one lets almost none. Numbers are illustrative.
Common causes
| Cause | What you see | Where to look |
|---|---|---|
| Token expired or already used | "Invalid or expired link" | Token lifetime setting; user clicked twice |
| Email scanner pre-opens the link | Link works for nobody, or is "already used" | Security gateway (Microsoft Defender, Mimecast and similar) |
| Link wraps or breaks in the email | 404 or cut-off token | Email template, click tracking, line wrapping |
| Wrong domain or http/https or www mismatch | Error page or wrong site | Site URL settings |
| Caching or security plugin | Blank page or 403 | Cache exclusions, firewall rules |
| Redirect drops the query string | Reset page loads without token | Redirect rules, login redirect plugins |
How to check if your site has it
Use a real test account
Create an account with an inbox you control. Try one Gmail and one company address, because company mail often adds link scanning.
Request the reset in a private window
Use a clean browser with no logged-in session and no extensions.
Time the email
Note how long it takes to arrive and check the spam folder.
Hover over the link
Check the domain is yours, it uses https, and the full token is present. Tracking wrappers from your email tool will show a different domain.
Click it once and set a password
Then log in with the new password. Also try on a phone, in the email app's built-in browser.
Click the same link again
It should say it is used, not crash. A server error here is still worth fixing.
How to fix it
The fix depends on the platform. Start with the one you use, then work through the general causes in the table above.
Check the site address
In Settings > General, make WordPress Address and Site Address match your live https domain, including www or non-www.
Exclude login pages from caching
In your cache plugin, never cache wp-login.php and any custom login or account page. Clear the cache afterwards.
Disable plugins one at a time
Security, login-customiser and redirect plugins often break the key and login parameters. Turn them off, retest, and find the culprit.
Use a proper mail sender
Send WordPress mail through an SMTP plugin so the email is not rewritten or lost. Turn off click tracking for password emails.
Check the email template
In Settings > Notifications > Customer account, open the password reset template and make sure the reset link variable ({{ customer.reset_password_url }} in classic templates) is untouched.
Remove link tracking
If an app rewrites links in store emails, exclude the reset email.
Check the primary domain
In Settings > Domains, make sure one primary domain is set and others redirect to it.
Ask customers to use the newest email
Each new request invalidates older links, so tell them to click only the latest.
Check User Accounts settings
In Site settings > User Accounts, confirm the login and reset redirect pages exist and are published.
Publish to the live domain
Publish after any change and test on the custom domain, not only the webflow.io staging URL.
Review redirects
In Site settings > Hosting, make sure no 301 rule catches the reset path.
Build the link from a fixed base URL
Use your configured public https URL, not the request host, so the link is always correct behind proxies.
Hash and store the token with an expiry
Allow a reasonable lifetime, such as 1 hour, and delete the token only after the password is set, not when the page first loads.
Keep the query string on redirects
If you redirect http to https or www to non-www, pass the token through.
Show a helpful error
On an expired token, show a button to request a new link instead of a bare error.
server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}Broken
- Link opens a 404 or "invalid token"
- Redirect removes the token
- Old links stay active or die at once
Fixed
- Link opens the new password form
- Token survives every redirect
- Expired links offer a new request button
How to confirm it's fixed
- Reset email arrives within a couple of minutes
- Link domain is yours and uses https
- Link opens the new password form in a private window
- New password saves and login works
- Works on mobile and in a Gmail and a company inbox
- Reusing the link shows a clear message, not an error
How to prevent it happening again
- Test a full reset after every theme, plugin, domain, email provider or checkout change
- Put a monthly reminder in the calendar to repeat the test
- Keep cache and security rules excluding login and reset pages
- Do not add click tracking to transactional emails
- Watch support inbox for "link expired" messages and treat each as a warning
How FunnelGuard handles this
FunnelGuard does not check password reset links yet. It is a possible future check. Today you need to test it by hand or with another tool.
What FunnelGuard does cover nearby: it runs your real lead forms, checkouts and booking journeys on a schedule, and checks that test leads reach your inbox and CRM. If a broken login or error page sits inside one of those journeys, the failed step is re-checked from a second region and you get one alert with a screenshot. The free plan includes 1 site and 2 journeys with daily checks, and no card is needed.
To watch for reset problems meanwhile, repeat the manual test above monthly, and use a test inbox that you check after each site change.
Questions people ask
Why is my password reset link not working?
The usual causes are an expired or already used token, an email security scanner opening the link first, a redirect that drops the token, or a wrong domain in the link. Request a new reset, open it once in a private browser window, and check the link address for cut-off characters.
Why does my password reset link say invalid or expired?
Reset tokens last a limited time and work once. Requesting a second reset cancels the first link, and email scanners can use the token before the person clicks. Ask for a new link and use only the newest email.
How do I fix a password reset link that goes to a 404 page?
Check that your site address uses the right domain and https, and that no redirect or caching rule affects the reset page. On WordPress, check Settings > General and exclude the login page from caching. Then request a new reset and test again.
Why does the reset link work for me but not for my customers?
You may be testing while logged in or on the same browser that made the request. Customers often use company email with link scanning, mobile email apps or older links. Test in a private window with a company inbox and a phone.
How long should a password reset link last?
Many sites use around one hour, though the right time depends on your security needs. Very short lifetimes cause failures when email is delayed. Whatever you choose, show a clear message and a request-new-link button when it expires.
Can email click tracking break password reset links?
Yes. If your email tool rewrites links through a tracking domain, the token can be altered or the redirect can fail. Turn off click tracking for password reset and other account emails.
Does FunnelGuard check password reset links?
Not yet. It is a possible future check. FunnelGuard currently checks lead forms, checkouts, booking and chat buttons, tracking hits and whether test leads reach your inbox and CRM, so test resets manually for now.
Related issues
- DLV-192Verification link expired immediately or invalid tokenFix guide
- DLV-191Account verification email not sentFix guide
- DLV-194Magic login link not deliveredFix guide
- DLV-189Confirm link in double opt-in brokenFix guide
- DLV-196Email change confirmation brokenFix guide
- DLV-195Welcome email after signup missingFix guide