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';
$loginService = new LoginService();
$logged = $loginService->checkLogin();
$checkLogin = $loginService->checkLogin();
$logged = $checkLogin['logged'];
$account_logged = $checkLogin['account'];
app()->setAccountLogged($account_logged);
$statusService = new StatusService();
$status = $statusService->checkStatus();

View File

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

View File

@ -14,8 +14,8 @@
{% endfor %}
</select>
<span class="input-group-append">
<button type="submit" class="btn btn-info btn-flat">Edit!</button>
</span>
<button type="submit" class="btn btn-info btn-flat">Edit!</button>
</span>
</div>
</div>
</form>