Adding customized password validation messages

You can customize the validations messages displayed to the user for providing details about password complexity.

Before you begin

Depending on how your system administrator customized your system, you might not have access to this task. To obtain access to this task or to have someone complete it for you, contact your system administrator.

About this task

You can add a key-value pair for validation messages in the tmsmesages.properties file. Key is the fully-qualified name of the custom password rule. Value is the validation message to the displayed.

Procedure

  1. Modify the tmsMessages_en.properties file.
    Note that the tmsMessages_en.properties file location for Software Stack environments.
    • For software installations For IM - Software Stack environment, go to data/tmsMessages.properties/tmsMessages_en.properties

For example: examples.passwordrules.CustomRule= Password should contain "a" character.

  1. For languages other than English, you must also update the appropriate tmsmessages.properties file.

For example: If the language is French, then you also need to modify tmsmessages_fr.properties file.

  1. Save your changes.
  2. Restart the WebSphere Application Server.

Results

If no entry is found for the custom rule in tmsMessages.properties file, then the fully-qualified name is displayed as password validation message.
Attention: After the installation of subsequent fix packs, all the custom validation messages are replaced. Before you install any Fix Pack, you must take a backup of any changes made to the tmsmessages.properties file and then re-do these changes after the Fix Pack installation.