🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A user-friendly password strength validator for password fields that shows an interactive feedback to indicate whether or not the password meets the requirements.

Bootstrap bootstrap-4 Password

Documentation

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


You May Also Like