There're four main characteristics of a strong password, and with the help of this plug-in you can easily enforce the usage of them on your users:
- At least 8 characters—the more characters, the better
- A mixture of both uppercase and lowercase letters
- A mixture of letters and numbers
- Inclusion of at least one special character, e.g., ! @ # ? ]
-> Set up the minimum required length
-> Add a number of required capital letters
-> Define how many numbers must be in the password
-> List the special characters and require a number of them to be included
If you have any special requirement regarding the password, you should make it clear and visible to the users.
This is when the Rules Container can help you out. It comes with three different styles: Static, Collapsible and External. The "Collapsible" option allows you to define a "Success Message" when all the rules are fulfilled through the "Rules Completed Message" attribute, while the "External" option allows you to show the list of the rules on any region(div) you wish.
Use the "successColor" and the "errorColor" properties to set the color, the "rulesFailIcon", "rulesCheckIcon" to overwrite the default icons in the rules list or the "Stretch Rules Container" option to display the rules next to each other (in the length of the item field).
Show messages on state change
Check the Show Error Message if Invalid option and write your message into the errorMessage property to simply display it under the item, when the typed in value is invalid. If you'd like to have more control, you can set up your actions on the uc-ap-rule-fail,uc-ap-rule-complete and uc-ap-every-rule-complete events.