We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d99bc4 commit ac78ea4Copy full SHA for ac78ea4
CHANGES.md
@@ -1,5 +1,9 @@
1
# CHANGELOG
2
3
+## 2.2.1dev
4
+
5
+- Bugfix in the common passwords rule.
6
7
## 2.2.0
8
9
- Add new rule to penalize common passwords.
src/rules.js
@@ -148,7 +148,10 @@ try {
148
};
149
150
validation.wordIsACommonPassword = function (options, word, score) {
151
- return ($.inArray(word, options.rules.commonPasswords) >= 0) && score;
+ if ($.inArray(word, options.rules.commonPasswords) >= 0) {
152
+ return score;
153
+ }
154
+ return 0;
155
156
157
rulesEngine.validation = validation;
0 commit comments