Skip to content

Commit d85d216

Browse files
committed
Release v2.2.1
1 parent ac78ea4 commit d85d216

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## 2.2.1dev
3+
## 2.2.1
44

55
- Bugfix in the common passwords rule.
66

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",
55
"authors": [
66
"Alejandro Blanco <alejandro.b.e@gmail.com>"

dist/pwstrength-bootstrap.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 2.2.0
3+
* Version: 2.2.1
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -195,7 +195,10 @@ try {
195195
};
196196

197197
validation.wordIsACommonPassword = function (options, word, score) {
198-
return ($.inArray(word, options.rules.commonPasswords) >= 0) && score;
198+
if ($.inArray(word, options.rules.commonPasswords) >= 0) {
199+
return score;
200+
}
201+
return 0;
199202
};
200203

201204
rulesEngine.validation = validation;

dist/pwstrength-bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pwstrength-bootstrap.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/pwstrength.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 2.2.0
3+
* Version: 2.2.1
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -195,7 +195,10 @@ try {
195195
};
196196

197197
validation.wordIsACommonPassword = function (options, word, score) {
198-
return ($.inArray(word, options.rules.commonPasswords) >= 0) && score;
198+
if ($.inArray(word, options.rules.commonPasswords) >= 0) {
199+
return score;
200+
}
201+
return 0;
199202
};
200203

201204
rulesEngine.validation = validation;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "jQuery plugin for Twitter Bootstrap that provides rulesets for visualy displaying the quality of a users typed in password.",
55
"author": "Alejandro Blanco <alejandro.b.e@gmail.com>",
66
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",

0 commit comments

Comments
 (0)