Skip to content
Snippets Groups Projects
Commit d562e07d authored by Carsten Logemann's avatar Carsten Logemann
Browse files

Issue #3499693: User password reset has missing class "url"

parent ed7bfe11
No related branches found
No related tags found
1 merge request!1Fixed missing url and a small coding standard
......@@ -7,6 +7,7 @@ use Drupal\Component\Utility\Crypt;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Flood\FloodInterface;
use Drupal\Core\Url;
use Drupal\u3id\Form\U3idUserPasswordResetForm;
use Drupal\user\Controller\UserController;
use Drupal\user\UserDataInterface;
......@@ -215,7 +216,10 @@ class U3idUserController extends UserController {
$this->flood->clear('user.http_login', $identifier);
user_login_finalize($user);
$this->logger->info('User %name used one-time login link at time %timestamp.', ['%name' => $user->getDisplayName(), '%timestamp' => $timestamp]);
$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.'));
// Let the user's password be changed without the current password
// check.
......
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