Skip to content

Commit

Permalink
Make the stronger check the only one
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmer committed Mar 23, 2015
1 parent 68ab278 commit 170d1c5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions jquery.complexify.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,9 @@
function inBanlist(str) {
if (options.banMode === 'strict') {
for (var i = 0; i < options.bannedPasswords.length; i++) {
if (options.bannedPasswords[i].indexOf(str) !== -1) {
return true;
}
}
return false;
} else if (options.banMode === 'more-strict') {
for (var i = 0; i < options.bannedPasswords.length; i++) {
if (str.toLowerCase().indexOf(options.bannedPasswords[i].toLowerCase()) !== -1) {
return true;
}
if (str.toLowerCase().indexOf(options.bannedPasswords[i].toLowerCase()) !== -1) {
return true;
}
}
return false;
} else {
Expand Down

0 comments on commit 170d1c5

Please sign in to comment.