Fixes to account logged

This commit is contained in:
slawkens 2025-03-10 10:45:39 +01:00
parent c357f392a0
commit 32cdb51812
3 changed files with 7 additions and 3 deletions

View File

@ -31,7 +31,10 @@ require SYSTEM . 'init.php';
require __DIR__ . '/includes/debugbar.php'; require __DIR__ . '/includes/debugbar.php';
$loginService = new LoginService(); $loginService = new LoginService();
$logged = $loginService->checkLogin(); $checkLogin = $loginService->checkLogin();
$logged = $checkLogin['logged'];
$account_logged = $checkLogin['account'];
app()->setAccountLogged($account_logged);
$statusService = new StatusService(); $statusService = new StatusService();
$status = $statusService->checkStatus(); $status = $statusService->checkStatus();

View File

@ -36,6 +36,7 @@ class App
$checkLogin = $loginService->checkLogin(); $checkLogin = $loginService->checkLogin();
$logged = $checkLogin['logged']; $logged = $checkLogin['logged'];
$account_logged = $checkLogin['account']; $account_logged = $checkLogin['account'];
$this->accountLogged = $account_logged;
$statusService = new StatusService(); $statusService = new StatusService();
$status = $statusService->checkStatus(); $status = $statusService->checkStatus();