From b94e3eebe224e8764e4402b0e54cc08530ace976 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Mon, 13 Jul 2020 20:12:57 +0200 Subject: [PATCH] Bugfix --- include/front-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/front-controller.php b/include/front-controller.php index 41c49f4..7f5714b 100644 --- a/include/front-controller.php +++ b/include/front-controller.php @@ -370,7 +370,7 @@ Flight::route('POST /token-issuer', function () { } $tokenBuilder = $locator->getTokenBuilder(); - $userId = $this->locator->getSession()->getUser()->id; + $userId = $locator->getSession()->getUser()->id; $token = $tokenBuilder->generateNewToken($userId, $postData['lifespan'], $postData['audit']); header('Content-Type: text/plain'); -- GitLab