Merge branch 'fix' into 'develop'
Fix commented-out code in LoginSubscriber to enable access token creation See merge request easy-solutions/apps/easyportal!50
This commit is contained in:
commit
32b42beb37
|
|
@ -59,7 +59,7 @@ class LoginSubscriber implements EventSubscriberInterface
|
||||||
$user->setLastConnection(new \DateTime('now', new \DateTimeZone('Europe/Paris')));
|
$user->setLastConnection(new \DateTime('now', new \DateTimeZone('Europe/Paris')));
|
||||||
|
|
||||||
$easySolution = $this->entityManager->getRepository(Client::class)->findOneBy(['identifier' => $this->clientIdentifier]);
|
$easySolution = $this->entityManager->getRepository(Client::class)->findOneBy(['identifier' => $this->clientIdentifier]);
|
||||||
/*if ($easySolution) {
|
if ($easySolution) {
|
||||||
$accessToken = new AccessToken(
|
$accessToken = new AccessToken(
|
||||||
identifier: bin2hex(random_bytes(40)),
|
identifier: bin2hex(random_bytes(40)),
|
||||||
expiry: new \DateTimeImmutable('+1 hour', new \DateTimeZone('Europe/Paris')),
|
expiry: new \DateTimeImmutable('+1 hour', new \DateTimeZone('Europe/Paris')),
|
||||||
|
|
@ -70,7 +70,7 @@ class LoginSubscriber implements EventSubscriberInterface
|
||||||
$this->entityManager->persist($user);
|
$this->entityManager->persist($user);
|
||||||
$this->entityManager->persist($accessToken);
|
$this->entityManager->persist($accessToken);
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vérifier si un paramètre redirect_app est présent dans l'URL
|
// Vérifier si un paramètre redirect_app est présent dans l'URL
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue