chore: Adjusting init to match latest

This commit is contained in:
Binyamin Yawitz 2024-08-06 15:04:59 -04:00
parent 9ed43ebbc2
commit 90acd79345
No known key found for this signature in database

View file

@ -1,6 +1,5 @@
<?php
//
///*
///**
// * Init
// *
@ -304,6 +303,7 @@
//Config::load('storage-mimes', __DIR__ . '/config/storage/mimes.php');
//Config::load('storage-inputs', __DIR__ . '/config/storage/inputs.php');
//Config::load('storage-outputs', __DIR__ . '/config/storage/outputs.php');
//Config::load('function-templates', __DIR__ . '/config/function-templates.php');
//
///**
// * New DB Filters
@ -999,7 +999,7 @@
// return $mail;
//});
//$register->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 [];
//});
//});*/