The Screen Name Validator sample provides a way to validate a user’s inputted screen name. During validation, the screen name is tested client-side and server-side.
This sample checks if a user’s screen name contains reserved words that are configured in the Control Panel → Configuration → System Settings → Foundation → ScreenName Validator menu. The default values for the screen name validator’s reserved words are admin and user.
You can test this sample by following the following steps:
- Deploy the Screen Name Validator to your portal installation.
- Navigate to the Control Panel → Users → Users and Organizations menu.
- Create a new user by selecting the Add User () button.
- Adding a screen name that contains the word admin or user.
This sample leverages the ScreenNameValidator API.
To customize this sample, modify its
You can also customize this sample’s configuration by adding more properties in
For more information on customizing the Validation sample to fit your needs, see the Javadoc provided in this sample’s Java classes.
There are three different versions of this sample, each built with a different build tool: