legacy-knowledge-base
Publicado Sep. 25, 2010

Password Reset Link Immediately Shows as 'No Longer Valid'

written-by

Lili Gyöngyi Fülöp

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

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:

  1. Navigate to Control Panel > Instance Settings > Email.
  2. Click on the Password Reset Notification tab.
  3. In the body of the template, locate the [$PASSWORD_RESET_URL$] variable.
  4. Remove the period (.) that immediately follows the variable.
  5. Click Save.

 

Additional Information

  • Email Settings Documentation
  • Password reset link expiration settings can be configured under Control Panel > Security > Password Policies.
did-this-article-resolve-your-issue

legacy-knowledge-base