diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-22 14:45:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-22 14:45:04 +0000 |
commit | a71fd090aeefd818d80c6163c690694ea6259859 (patch) | |
tree | c7028142bf90f91d3cab202c5d84a9e2364d5e26 /modules/user | |
parent | cf7cb6b65caae39a2491db8732148d717a21db1f (diff) | |
download | brdo-a71fd090aeefd818d80c6163c690694ea6259859.tar.gz brdo-a71fd090aeefd818d80c6163c690694ea6259859.tar.bz2 |
- Patch #640726 by mcarbone: a 4 character passwords was called 'strong'.
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/user.js b/modules/user/user.js index c555c4d6f..412259529 100644 --- a/modules/user/user.js +++ b/modules/user/user.js @@ -109,10 +109,10 @@ Drupal.evaluatePasswordStrength = function (password, translate) { var usernameBox = $('input.username'); var username = (usernameBox.length > 0) ? usernameBox.val() : translate.username; - // Lose 10 points for every character less than 6. + // Lose 5 points for every character less than 6, plus a 30 point penalty. if (password.length < 6) { msg.push(translate.tooShort); - strength -= (6 - password.length) * 10; + strength -= ((6 - password.length) * 5) + 30; } // Count weaknesses. @@ -166,7 +166,7 @@ Drupal.evaluatePasswordStrength = function (password, translate) { indicatorText = translate.fair; } else if (strength < 80) { indicatorText = translate.good; - } else if (strength < 100) { + } else if (strength <= 100) { indicatorText = translate.strong; } |