hippo password strength checker.
<script src="/path/to/jquery.hippo-password-strength.js"></script>
<input class="password" type="password" size="30" name="params[password]" value="" data-indicator="strengthLevel">
<img id="strengthLevel" class="password_strength1">
.password_strength1 {
width: 150px;
height: 22px;
background-image: url("images/strength_1.gif");
}
.password_strength2 {
width: 150px;
height: 22px;
background-image: url("images/strength_2.gif");
}
.password_strength3 {
width: 150px;
height: 22px;
background-image: url("images/strength_3.gif");
}
.password_strength4 {
width: 150px;
height: 22px;
background-image: url("images/strength_4.gif");
}
Use the plugin as follows:
$('.password').hippoPasswordStrength();
// Custom indicator prefix
//
// For example
// level1: <img id="strengthLevel" class="pass_state01">
// level2: <img id="strengthLevel" class="pass_state02">
// ...
$('.password').hippoPasswordStrength({
indicator_prefix: "pass_state0"
});
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This plugin is available under the MIT license.