Skip to content
Snippets Groups Projects
Verified Commit b66feed7 authored by Jess's avatar Jess
Browse files

Issue #3282420 by RhiP, cilefen: Ask new users to set, instead of change, their password

parent 3946bc30
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment