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 87c76df + c8ead23 commit 9b784baCopy full SHA for 9b784ba
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