Skip to content
Snippets Groups Projects
Verified Commit 46e33eda authored by quietone's avatar quietone
Browse files

Issue #2969406 by bhanu951, robincs, quietone, ranjit1032002, sahil.goyal,...

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 5874bcd3)
parent 73c60599
Branches
Tags
5 merge requests!12745Fixed: Path alias language doesn't changes on changing of node language,!12537Add ViewsConfigUpdater deprecation support for default_argument_skip_url,!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4
Pipeline #348893 passed with warnings
Pipeline: drupal

#348919

    Pipeline: drupal

    #348902

      ......@@ -264,7 +264,7 @@ public function resetPassLogin($uid, $timestamp, $hash, Request $request) {
      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 @@ protected function loginFromResetEmail() {
      $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.');
      }
      }
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Please to comment