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
parent
975c164261
commit
4af9619a49
|
@ -109,6 +109,7 @@
|
||||||
* @return {object}
|
* @return {object}
|
||||||
*/
|
*/
|
||||||
Drupal.evaluatePasswordStrength = function (password, translate) {
|
Drupal.evaluatePasswordStrength = function (password, translate) {
|
||||||
|
password = password.trim();
|
||||||
var indicatorText;
|
var indicatorText;
|
||||||
var indicatorClass;
|
var indicatorClass;
|
||||||
var weaknesses = 0;
|
var weaknesses = 0;
|
||||||
|
|
Loading…
Reference in New Issue