Skip to content

Commit 9b784ba

Browse files
ENGCOM-3404: #19071: Password strength indicator shows No Password… #19073
- Merge Pull Request #19073 from dimasalamatov/magento2-1:password-strength-bug - Merged commits: 1. c8ead23
2 parents 87c76df + c8ead23 commit 9b784ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/view/frontend/web/js/password-strength-indicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ define([
8383
} else {
8484
isValid = $.validator.validateSingleElement(this.options.cache.input);
8585
zxcvbnScore = zxcvbn(password).score;
86-
displayScore = isValid ? zxcvbnScore : 1;
86+
displayScore = isValid && zxcvbnScore > 0 ? zxcvbnScore : 1;
8787
}
8888
}
8989

0 commit comments

Comments
 (0)