diff --git a/core/modules/user/src/Controller/UserController.php b/core/modules/user/src/Controller/UserController.php index d4c6ff42993..6a6b8729379 100644 --- a/core/modules/user/src/Controller/UserController.php +++ b/core/modules/user/src/Controller/UserController.php @@ -264,7 +264,7 @@ class UserController extends ControllerBase { user_login_finalize($user); $this->logger->info('User %name used one-time login link at time %timestamp.', ['%name' => $user->getDisplayName(), '%timestamp' => $timestamp]); - $this->messenger()->addStatus($this->t('You have just used your one-time login link. It is no longer necessary to use this link to log in. It is recommended that you set your password.')); + $this->messenger()->addStatus($this->t('You have used a one-time login link. You can set your new password now.')); // Let the user's password be changed without the current password // check. $token = Crypt::randomBytesBase64(55); diff --git a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php index 4d4cc84ff95..7a1bf6a0d71 100644 --- a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php +++ b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php @@ -605,7 +605,7 @@ class UserLoginHttpTest extends BrowserTestBase { $resetURL = $urls[0]; $this->drupalGet($resetURL); $this->submitForm([], 'Log in'); - $this->assertSession()->pageTextContains('You have just used your one-time login link. It is no longer necessary to use this link to log in. It is recommended that you set your password.'); + $this->assertSession()->pageTextContains('You have used a one-time login link. You can set your new password now.'); } }