Fix commented-out code in LoginSubscriber to enable access token creation

This commit is contained in:
mathis 2026-03-03 16:19:00 +01:00
parent 6a4f1f662e
commit afc1b16dea
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class LoginSubscriber implements EventSubscriberInterface
$user->setLastConnection(new \DateTime('now', new \DateTimeZone('Europe/Paris')));
$easySolution = $this->entityManager->getRepository(Client::class)->findOneBy(['identifier' => $this->clientIdentifier]);
/*if ($easySolution) {
if ($easySolution) {
$accessToken = new AccessToken(
identifier: bin2hex(random_bytes(40)),
expiry: new \DateTimeImmutable('+1 hour', new \DateTimeZone('Europe/Paris')),
@ -70,7 +70,7 @@ class LoginSubscriber implements EventSubscriberInterface
$this->entityManager->persist($user);
$this->entityManager->persist($accessToken);
$this->entityManager->flush();
}*/
}
}
// Vérifier si un paramètre redirect_app est présent dans l'URL