This commit is contained in:
Flatlogic Bot 2025-10-20 23:39:58 +00:00
parent d95336537a
commit d04cdf42f1
3 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
<?php
session_start();
require_once 'auth_check.php'; // Protect this page
require_once 'db/config.php';

View File

@ -1,5 +1,4 @@
<?php
session_start();
require_once 'auth_check.php'; // Protect this page
require_once 'db/config.php';

View File

@ -20,6 +20,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if ($user && password_verify($password, $user['password'])) {
$_SESSION['user_id'] = $user['id'];
$_SESSION['username'] = $user['username'];
$_SESSION['role'] = $user['role'];
header('Location: index.php');
exit;
} else {