We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40e7e50 + 9b784ba commit 5283582Copy full SHA for 5283582
app/code/Magento/Customer/view/frontend/web/js/password-strength-indicator.js
@@ -83,7 +83,7 @@ define([
83
} else {
84
isValid = $.validator.validateSingleElement(this.options.cache.input);
85
zxcvbnScore = zxcvbn(password).score;
86
- displayScore = isValid ? zxcvbnScore : 1;
+ displayScore = isValid && zxcvbnScore > 0 ? zxcvbnScore : 1;
87
}
88
89
0 commit comments