mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: Adjusting init to match latest
This commit is contained in:
parent
9ed43ebbc2
commit
90acd79345
1 changed files with 10 additions and 9 deletions
19
app/init.php
19
app/init.php
|
|
@ -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 [];
|
||||
//});
|
||||
//});*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue