Issue #2254235 by AohRveTPV, mahtoranjeet, er.pushpinderrana, yogen.prasad, ashutoshsngh, Manjit.Singh, Charles Belov, nod_: Don't include leading and trailing spaces in password strength

8.0.x
Alex Pott 2015-06-11 13:26:54 +01:00
parent 975c164261
commit 4af9619a49
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@
* @return {object}
*/
Drupal.evaluatePasswordStrength = function (password, translate) {
password = password.trim();
var indicatorText;
var indicatorClass;
var weaknesses = 0;