Issue #2969406 by bhanu951, robincs, quietone, ranjit1032002, sahil.goyal, urvashi_vora, opdavies, elber, aaronmchale, avpaderno, smustgrave, alberto56, cilefen, benjifisher, lauriii, larowlan, Mahima_Mathur23, nkoporec, borisson_, poker10: Fix incorrect message after resetting password
(cherry picked from commit 5874bcd35c
)
merge-requests/10341/head
parent
4c899033a9
commit
fb24187761
|
@ -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);
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue