From b66feed7bb05b5ed6d45654706f5927a9d29d747 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Mon, 8 Aug 2022 16:45:29 -0500 Subject: [PATCH] Issue #3282420 by RhiP, cilefen: Ask new users to set, instead of change, their password --- core/modules/user/src/Controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/user/src/Controller/UserController.php b/core/modules/user/src/Controller/UserController.php index d6c298d3008b..ca40039816d0 100644 --- a/core/modules/user/src/Controller/UserController.php +++ b/core/modules/user/src/Controller/UserController.php @@ -244,7 +244,7 @@ public function resetPassLogin($uid, $timestamp, $hash, Request $request) { elseif ($user->isAuthenticated() && ($timestamp >= $user->getLastLoginTime()) && ($timestamp <= $current) && hash_equals($hash, user_pass_rehash($user, $timestamp))) { user_login_finalize($user); $this->logger->notice('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. Please change your password.')); + $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. Please set your password.')); // Let the user's password be changed without the current password // check. $token = Crypt::randomBytesBase64(55); -- GitLab