validate password requirements - Free Download Validate Password Complexity With jQuery Password Requirements

Free Download Validate Password Complexity With jQuery Password Requirements

Posted on

This time I will share jQuery Plugin and tutorial about Validate Password Complexity With jQuery Password Requirements, hope it will help you in programming stack.

validate password requirements - Free Download Validate Password Complexity With jQuery Password Requirements
File Size: 8.1 KB
Views Total: 1697
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A small yet configurable password complexity validation jQuery plugin to enforce strong passwords on the web application.

The plugin displays under your password field a hint popup containing Password Requirements enforced by the security policy of your web app.

Use this plugin to make sure your user’s password meet or exceed password criteria you specify.

By default, the minimum password length is 8 characters and must contain at least 1 lowercase letter, 1 capital letter, 1 number, and 1 special character.

How to use it:

1. Load the jquery.passwordRequirements.css for the styling of the plugin.

1 <link rel="stylesheet" href="css/jquery.passwordRequirements.css" />

2. Load the jquery.passwordRequirements.min.js after the latest jQuery library.

1 <script src="/path/to/cdn/jquery.min.js"></script>
2 <script src="js/jquery.passwordRequirements.min.js"></script>

3. Attach the plugin to your password field and you’re done.

1 <input type="password" class="pr-password">
1 $(function(){
2   $(".pr-password").passwordRequirements();
3 });

4. Create your own password requirements with the following parameters:

1 $(".pr-password").passwordRequirements({
2   numCharacters: 8,
3   useLowercase: true,
4   useUppercase: true,
5   useNumbers: true,
6   useSpecial: true
7 });

5. Change the theme: ‘dark’ or ‘light’ (Default).

1 $(".pr-password").passwordRequirements({
2   style: "dark"
3 });

6. Customize the fade in/out animations of the hint popup. Default: 500.

1 $(".pr-password").passwordRequirements({
2   fadeTime: 500
3 });

This awesome jQuery plugin is developed by elationbase. For more Advanced Usages, please check the demo page or visit the official website.