Skip to content

Commit bfbfb71

Browse files
committed
MAGETWO-51815: Invalid work of Password Strength Validator on "Create Customer" Storefront page
- Fix less styling - Modify containers css class - Modify edit template
1 parent 4a1493a commit bfbfb71

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/Customer/view/frontend/templates/form/edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
data-input="new-password"
6060
data-validate="{required:true, 'validate-customer-password':true}"
6161
autocomplete="off" />
62-
<div id="password-strength-meter-container">
62+
<div id="password-strength-meter-container" data-role="password-strength-meter" >
6363
<div id="password-strength-meter" class="password-strength-meter">
6464
<?php /* @escapeNotVerified */ echo __('Password Strength'); ?>:
65-
<span id="password-strength-meter-label">
65+
<span id="password-strength-meter-label" data-role="password-strength-meter-label" >
6666
<?php /* @escapeNotVerified */ echo __('No Password'); ?>
6767
</span>
6868
</div>

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146
data-password-min-character-sets="<?php echo $block->escapeHtml($block->getRequiredCharacterClassesNumber()) ?>"
147147
data-validate="{required:true, 'validate-customer-password':true}"
148148
autocomplete="off">
149-
<div id="password-strength-meter-container">
150-
<div id="password-strength-meter" data-role="password-strength-meter" class="password-strength-meter">
149+
<div id="password-strength-meter-container" data-role="password-strength-meter" >
150+
<div id="password-strength-meter" class="password-strength-meter">
151151
<?php /* @escapeNotVerified */ echo __('Password Strength'); ?>:
152152
<span id="password-strength-meter-label" data-role="password-strength-meter-label" >
153153
<?php /* @escapeNotVerified */ echo __('No Password'); ?>

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
}
257257
}
258258

259-
.password-strength-meter-0,
259+
.password-strength-meter-0 &,
260260
.password-strength-meter-1 & {
261261
&:before {
262262
background-color: @password-strength-color__weak;

0 commit comments

Comments
 (0)