diff --git a/core/modules/user/lib/Drupal/user/AccountFormController.php b/core/modules/user/lib/Drupal/user/AccountFormController.php index 3784e52..1cf90bc 100644 --- a/core/modules/user/lib/Drupal/user/AccountFormController.php +++ b/core/modules/user/lib/Drupal/user/AccountFormController.php @@ -244,7 +244,7 @@ public function buildEntity(array $form, array &$form_state) { } /** - * Overrides Drupal\Core\Entity\EntityFormController::validate(). + * {@inheritdoc} */ public function validate(array $form, array &$form_state) { parent::validate($form, $form_state); @@ -310,13 +310,13 @@ public function validate(array $form, array &$form_state) { } /** - * Overrides Drupal\Core\Entity\EntityFormController::submit(). + * {@inheritdoc} */ public function submit(array $form, array &$form_state) { parent::submit($form, $form_state); $account = $this->getEntity($form_state); // Remove the password reset tag since a new password was saved. - unset($_SESSION['pass_reset_'. $account->uid]); + unset($_SESSION['pass_reset_'. $user->uid]); } }