Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shevabam/jquery.passwordstrength
jQuery plugin to check the strength of a password
https://github.com/shevabam/jquery.passwordstrength
jquery password
Last synced: 8 days ago
JSON representation
jQuery plugin to check the strength of a password
- Host: GitHub
- URL: https://github.com/shevabam/jquery.passwordstrength
- Owner: shevabam
- Created: 2014-06-11T09:32:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T09:32:15.000Z (over 10 years ago)
- Last Synced: 2024-05-13T05:09:16.259Z (6 months ago)
- Topics: jquery, password
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jquery.passwordstrength.js
jQuery plugin to check the strength of a password.
![](screen.png)
## Installation
Include script after the jQuery library:
``````
Also, include the CSS file's:
``````
## How to use it
### Simple way
Just add this:
$(function(){
$('input#pwd').passwordstrength();
});
### Options
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| **minlength** | `Int` | `8` | Minimum length of password |
| **number** | `Boolean` | `true` | Password requires at least one number |
| **capital** | `Boolean` | `true` | Password requires at least one uppercase letter |
| **special** | `Boolean` | `true` | Password requires at least one special character |You can change the labels with the `labels` option :
- **general** : main label
- **minlength** : for the minimum length label's
- **number** : for the number label's
- **capital** : for the one uppercase letter label's
- **special** : for the one special character label'sLarge example :
$(function(){
$('input#pwd').passwordstrength({
'minlength': 6,
'number' : true,
'capital' : true,
'special' : true,
'labels' : {
'general' : 'Le mot de passe doit avoir :',
'minlength' : 'Au moins {{minlength}} caractères',
'number' : 'Au moins un chiffre',
'capital' : 'Au moins une lettre majuscule',
'special' : 'Au moins un caractère spécial'
}
});
});