diff --git a/core/modules/user/user.js b/core/modules/user/user.js index e988f747738..a2ce834feba 100644 --- a/core/modules/user/user.js +++ b/core/modules/user/user.js @@ -109,6 +109,7 @@ * @return {object} */ Drupal.evaluatePasswordStrength = function (password, translate) { + password = password.trim(); var indicatorText; var indicatorClass; var weaknesses = 0;