Issue
- When a user requests a password reset, the link in the notification email leads to an error page stating, "Your password reset link is no longer valid."
- This occurs even if the link is clicked immediately after being received and the configured password reset link duration has not expired.
Environment
- Liferay DXP 2025.Q1+
Resolution
The cause of this issue is the default email template for password resets, which includes a period at the end of the URL. Some email clients may include this period as part of the link, which invalidates it.
To resolve this, follow these steps to edit the email template:
- Navigate to Control Panel > Instance Settings > Email.
- Click on the Password Reset Notification tab.
- In the body of the template, locate the
[$PASSWORD_RESET_URL$]variable. - Remove the period (
.) that immediately follows the variable. - Click Save.
Additional Information
- Email Settings Documentation
- Password reset link expiration settings can be configured under Control Panel > Security > Password Policies.