Legacy Knowledge Base
Published Jul. 2, 2025

Expand the available special characters for passwords

Written By

Tibor Szucs

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove 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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • If you have a password policy enabled where the users must have special characters in their passwords certain characters that are not allowed such as "&" or "%". You will get the following error message when you are trying to use them in a password: 

Environment

  • DXP 7.0+

Resolution

  • In order to add special characters you will need to add the characters you want to use to the following portal-ext property: 
    passwords.passwordpolicytoolkit.validator.charset.symbols=_.!@$*=-?
    This is the default value of the property. Add the desired symbol to this list in your portal-ext properties file.

  • If you are using a password generator then you will need to add the symbol or character to this property as well: 
    passwords.passwordpolicytoolkit.generator.charset.symbols=_.!@$*=-?

 

Did this article resolve your issue ?

Legacy Knowledge Base