diff --git a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php index 6b0520c..c37b511 100644 --- a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php +++ b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php @@ -49,7 +49,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form public static function processPasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) { $element['pass1'] = array( '#type' => 'password', - '#title' => !empty($element['#title1']) ? $element['#title1'] : t('Password'), + '#title' => !empty($element['#title1']) ? $element['#title1'] : t('New password'), '#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'], '#required' => $element['#required'], '#attributes' => array('class' => array('password-field')), diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php index 022c85e..9fbbf8c 100644 --- a/core/modules/user/src/AccountForm.php +++ b/core/modules/user/src/AccountForm.php @@ -120,7 +120,7 @@ public function form(array $form, FormStateInterface $form_state) { $form['account']['pass'] = array( '#type' => 'password_confirm', '#prefix' => '

' . $this->t('Change password') . '

', - '#title2' => $this->t('New password confirmation'), + '#title2' => $this->t('Confirm new password'), '#size' => 25, '#description' => $this->t('To change the current user password enter the new password.'), );