Base de Conhecimento
Publicado Jun. 25, 2030

Forgot Password Accepts Any Email Address Without Validation

written-by

Tímea Bihari

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.

Issue

  • The Forgot Password option does not validate if the user enters a correct email address. You can enter anything and the field accepts it.
  • Two types of validation are expected:
    1. Email format validation (to ensure the entered email address follows a valid format).
    2. Existing email validation (to verify that the entered email address is registered in the system).

Environment

  • Liferay DXP 7.4 and Quarterly Releases

Resolution

  • Email format validation is not included in the Forgot Password functionality out-of-the-box. However, it is possible to customize this process and create an email address validator service. For guidance on how to achieve this on older versions of Liferay, refer to the attached HistoricMBThread-CustomizeEmailValidation.pdf discussion. Please note that Liferay Support will not be able to assist with designing or implementing customizations.
  • Existing email validation is intentionally not included in the default Forgot Password process to prevent enumeration attacks. The property login.secure.forgot.password controls this behavior and defaults to true. For more information, see How to prevent user enumeration attacks through the Forgot Password functionality.
did-this-article-resolve-your-issue

Base de Conhecimento