mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: Adjusting init to match latest
This commit is contained in:
+10
-9
@@ -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 [];
|
||||
//});
|
||||
//});*/
|
||||
|
||||
Reference in New Issue
Block a user