Commit 767077f4 authored by alexpott's avatar alexpott

Issue #2177769 by jbrauer, alansaviolobo, anavarre, am_Sreenivasan, greggles:...

Issue #2177769 by jbrauer, alansaviolobo, anavarre, am_Sreenivasan, greggles: User module should recommend longer password
parent b1c52e81
......@@ -133,10 +133,10 @@
var $usernameBox = $('input.username');
var username = ($usernameBox.length > 0) ? $usernameBox.val() : translate.username;
// Lose 5 points for every character less than 6, plus a 30 point penalty.
if (password.length < 6) {
// Lose 5 points for every character less than 12, plus a 30 point penalty.
if (password.length < 12) {
msg.push(translate.tooShort);
strength -= ((6 - password.length) * 5) + 30;
strength -= ((12 - password.length) * 5) + 30;
}
// Count weaknesses.
......
......@@ -1270,7 +1270,7 @@ function user_form_process_password_confirm($element) {
$password_settings += array(
'strengthTitle' => t('Password strength:'),
'hasWeaknesses' => t('To make your password stronger:'),
'tooShort' => t('Make it at least 6 characters'),
'tooShort' => t('Make it at least 12 characters'),
'addLowerCase' => t('Add lowercase letters'),
'addUpperCase' => t('Add uppercase letters'),
'addNumbers' => t('Add numbers'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment