Password-Validator
JavaScript Library for password field validation
Usage-
- Add PasswordValidator to your HTML Document under JQuery and BootsrtrapJS.
- Give all password fields a unique ID that ends with a number "password1"
- Add the class "validate" to the password input.
Version 2
- Add PasswordValidatorv2.js to your HTML Document under JQuery and BootsrtrapJS.
- use PasswordValidator.setup(PasswordFieldID,[VerifyFieldId]), to setup password validator, VerifyFieldId is optional
Following fields are configurable now :-
PasswordValidator.minSize = 5; // Default
PasswordValidator.maxSize = 15; // Default
PasswordValidator.lengthConfigured = true; // Default
PasswordValidator.uppercaseConfigured = true; // Default
PasswordValidator.digitConfigured = true; // Default
PasswordValidator.specialConfigured = true; // Default
PasswordValidator.prohibitedConfigured = true; // Default
PasswordValidator.specialCharacters = ['_', '#', '%', '*', '@']; // Default
PasswordValidator.prohibitedCharacters = ['$', '&', '=', '!']; // Default
Change Log:
Version 1.0- Initial release
Version 1.1 - Cleaned up code and added comments
Version 1.2 - Added version comments
Version 1.3 - Added password matching feature
Version 1.4 - Added version2