Skip to content

Commit f3ca1ce

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ define([
5757
isValid = $.validator.validateSingleElement(this.options.cache.input),
5858
displayScore = zxcvbnScore || 1;
5959

60-
// Display score is based on combination of whether password is empty, valid, and zxcvbn strength
61-
if (isEmpty) {
62-
displayScore = 0;
63-
} else if (!isValid) {
64-
displayScore = 1;
65-
}
60+
// Display score is based on combination of whether password is empty, valid, and zxcvbn strength
61+
if (isEmpty) {
62+
displayScore = 0;
63+
} else if (!isValid) {
64+
displayScore = 1;
65+
}
6666

6767
// Update label
6868
this._displayStrength(displayScore);

0 commit comments

Comments
 (0)