1
0
mirror of synced 2025-12-28 00:23:25 +00:00

fix(public) better structure

This commit is contained in:
Valentin
2024-06-14 10:48:27 +02:00
parent f9d50f5b2b
commit d7cdb94316
45 changed files with 252 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$_SESSION['user_id'] = $user['id'];
$_SESSION['first_name'] = $user['first_name'];
$_SESSION['is_admin'] = $user['is_admin'];
header("Location: index.php");
header("Location: /");
} else {
$errorMessage = "Invalid email or password.";
}