From 90acd793453bd6d61a82d3bcf68f134fdcb4b147 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:04:59 -0400 Subject: [PATCH] chore: Adjusting init to match latest --- app/init.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/init.php b/app/init.php index 02ccac33b1..2af75ebbce 100644 --- a/app/init.php +++ b/app/init.php @@ -1,6 +1,5 @@ set('geodb', function () { -// return new Reader(__DIR__ . '/assets/dbip/dbip-country-lite-2024-02.mmdb'); +// return new Reader(__DIR__ . '/assets/dbip/dbip-country-lite-2024-08.mmdb'); //}); //$register->set('passwordsDictionary', function () { // $content = \file_get_contents(__DIR__ . '/assets/security/10k-common-passwords'); @@ -1243,14 +1243,15 @@ // } // // $jwtUserId = $payload['userId'] ?? ''; -// $jwtSessionId = $payload['sessionId'] ?? ''; -// -// if ($jwtUserId && $jwtSessionId) { +// if (!empty($jwtUserId)) { // $user = $dbForProject->getDocument('users', $jwtUserId); // } // -// if (empty($user->find('$id', $jwtSessionId, 'sessions'))) { // Match JWT to active token -// $user = new Document([]); +// $jwtSessionId = $payload['sessionId'] ?? ''; +// if(!empty($jwtSessionId)) { +// if (empty($user->find('$id', $jwtSessionId, 'sessions'))) { // Match JWT to active token +// $user = new Document([]); +// } // } // } // @@ -1732,4 +1733,4 @@ //}, ['request']); //App::setResource('plan', function (array $plan = []) { // return []; -//}); +//});*/