Skip to content

Commit 67c55ec

Browse files
committed
Adding admin class for password input type. Removing duplcated classes.
1 parent 3a2561d commit 67c55ec

File tree

5 files changed

+12
-7
lines changed
  • app/code/Magento
  • lib/internal/Magento/Framework/Data/Form/Element

5 files changed

+12
-7
lines changed

app/code/Magento/Backend/Block/System/Account/Edit/Form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function _prepareForm()
114114
'name' => 'password',
115115
'label' => __('New Password'),
116116
'title' => __('New Password'),
117-
'class' => 'validate-admin-password admin__control-text'
117+
'class' => 'validate-admin-password'
118118
]
119119
);
120120

@@ -124,7 +124,7 @@ protected function _prepareForm()
124124
[
125125
'name' => 'password_confirmation',
126126
'label' => __('Password Confirmation'),
127-
'class' => 'validate-cpassword admin__control-text'
127+
'class' => 'validate-cpassword'
128128
]
129129
);
130130

@@ -152,7 +152,7 @@ protected function _prepareForm()
152152
'label' => __('Your Password'),
153153
'id' => self::IDENTITY_VERIFICATION_PASSWORD_FIELD,
154154
'title' => __('Your Password'),
155-
'class' => 'validate-current-password required-entry admin__control-text',
155+
'class' => 'validate-current-password required-entry',
156156
'required' => true
157157
]
158158
);

app/code/Magento/Integration/Block/Adminhtml/Integration/Edit/Tab/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function _addGeneralFieldset($form, $integrationData)
179179
'label' => __('Your Password'),
180180
'id' => self::DATA_CONSUMER_PASSWORD,
181181
'title' => __('Your Password'),
182-
'class' => 'input-text validate-current-password required-entry',
182+
'class' => 'validate-current-password required-entry',
183183
'required' => true
184184
]
185185
);

app/code/Magento/User/Block/Role/Tab/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function _initForm()
9999
'label' => __('Your Password'),
100100
'id' => self::IDENTITY_VERIFICATION_PASSWORD_FIELD,
101101
'title' => __('Your Password'),
102-
'class' => 'input-text validate-current-password required-entry',
102+
'class' => 'validate-current-password required-entry',
103103
'required' => true
104104
]
105105
);

app/code/Magento/User/Block/User/Edit/Tab/Main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ protected function _prepareForm()
184184
'label' => __('Your Password'),
185185
'id' => self::CURRENT_USER_PASSWORD_FIELD,
186186
'title' => __('Your Password'),
187-
'class' => 'input-text validate-current-password required-entry',
187+
'class' => 'validate-current-password required-entry',
188188
'required' => true
189189
]
190190
);

lib/internal/Magento/Framework/Data/Form/Element/Password.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
use Magento\Framework\Escaper;
1515

16+
/**
17+
* Class Password
18+
*
19+
* Password input type
20+
*/
1621
class Password extends AbstractElement
1722
{
1823
/**
@@ -37,7 +42,7 @@ public function __construct(
3742
*/
3843
public function getHtml()
3944
{
40-
$this->addClass('input-text');
45+
$this->addClass('input-text admin__control-text');
4146
return parent::getHtml();
4247
}
4348
}

0 commit comments

Comments
 (0)