fixing some security issues and harderning service
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-06 08:51:51 +02:00
parent 4d8ce1da43
commit 7ae7df0a11
30 changed files with 328 additions and 124 deletions
+4 -3
View File
@@ -1,13 +1,14 @@
<?php
// Simulate fetching user data from a database
session_start();
include "../utils/security.php";
secure_session_start();
header('Content-Type: application/json');
if($_SESSION["logged_in"]!==true){
if(!isset($_SESSION["logged_in"]) || $_SESSION["logged_in"]!==true){
$data=[
'status' => 'error',
'message' => 'not logged in'
];
echo json_encode($user_data);
echo json_encode($data);
exit();
}