diff --git a/core/modules/user/src/Controller/MailChangeController.php b/core/modules/user/src/Controller/MailChangeController.php index 3b3fa18..7944c26 100644 --- a/core/modules/user/src/Controller/MailChangeController.php +++ b/core/modules/user/src/Controller/MailChangeController.php @@ -49,7 +49,7 @@ public function page(UserInterface $user, $new_mail, $timestamp, $hash) { /** @var \Drupal\user\UserStorageInterface $user_storage */ $user_storage = $this->entityTypeManager()->getStorage('user'); $user_storage->updateLastLoginTimestamp($user); - // Reflect the changes in the session if the user is user is logged in. + // Apply the account changes to the session. if ($current_user->isAuthenticated() && $current_user->id() == $user->id()) { $current_user->setAccount($user); } @@ -90,8 +90,8 @@ public function access(UserInterface $user) { * (optional) The timestamp when hash is created. If missed, the current * request time is used. * @param string $hash - * (optional) Unique hash. If missed, the hash is computed based on the - * account data and timestamp. + * (optional) Unique hash. When not provided the hash is computed based on + * the account data and timestamp. * * @return \Drupal\Core\Url * A unique url that provides a one-time email change confirmation.