Skip to content
Snippets Groups Projects

Issue#3513601: Improve password fields order.

2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -69,7 +69,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
public static function processPasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) {
$element['pass1'] = [
'#type' => 'password',
'#title' => t('Password'),
'#title' => t('New Password'),
'#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'],
'#required' => $element['#required'],
'#attributes' => [
@@ -80,7 +80,7 @@ public static function processPasswordConfirm(&$element, FormStateInterface $for
];
$element['pass2'] = [
'#type' => 'password',
'#title' => t('Confirm password'),
'#title' => t('Confirm New password'),
'#value' => empty($element['#value']) ? NULL : $element['#value']['pass2'],
'#required' => $element['#required'],
'#attributes' => [
Loading