Skip to content

briannippert/Password-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password-Validator

JavaScript Library for password field validation

Usage-

  1. Add PasswordValidator to your HTML Document under JQuery and BootsrtrapJS.
  2. Give all password fields a unique ID that ends with a number "password1"
  3. Add the class "validate" to the password input.

Version 2

  1. Add PasswordValidatorv2.js to your HTML Document under JQuery and BootsrtrapJS.
  2. 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

About

JavaScript Library for password field validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published