FNBPasswordValidator
Validates passwords and helps you guarantee passwords more secure in your system.
Make sure youre users have a secure password, checking for uppercase/lowercase letters, numbers, special characters, prohibited words (e.g. their name or email address) and min/max password length.
Features
- Uppercase verification
- Lowercase verification
- Numbers verification
- Special Characters verification
- Prohibited words verification
Installation
Install via NPM:
npm install fnbpasswordvalidator
Client-side
Usage
passwordValidator;
Example
var passwordValidator = ; var password = "somePassword123*"; var passwordDetails = passwordValidator;if !passwordDetailsvalid res; return;
Options
min
: Password minimum length. Default: 8max
: Password maximum length. Default: 255numbers
: Numbers required. Default: trueuppercase
: Uppercase required. Default: truelowercase
: Lowecase required. Default: truespecialCharacters
: Special Characters required. Default: trueprohibitedWords
: Words to be banned from the password. Array of strings.
Contribute
We would love for you to contribute to fnbpasswordvalidator, check the LICENSE
file for more info.
Meta
Felipe N. Brito – me@felipenbrito.com
Distributed under the MIT license. See LICENSE
for more information.