Skip to content

Commit 79795ab

Browse files
MAGETWO-51815: Invalid work of Password Strength Validator on "Create Customer" Storefront page
1 parent 7d1192d commit 79795ab

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
@@ -55,7 +55,7 @@ define([
5555
isEmpty = password.length === 0,
5656
zxcvbnScore = zxcvbn(password).score,
5757
isValid = $.validator.validateSingleElement(this.options.cache.input),
58-
displayScore = zxcvbnScore;
58+
displayScore = zxcvbnScore || 1;
5959

6060
// Display score is based on combination of whether password is empty, valid, and zxcvbn strength
6161
if (isEmpty) {

0 commit comments

Comments
 (0)