Skip to content
Snippets Groups Projects
Commit 263fddcc authored by Bitha17's avatar Bitha17
Browse files

edit auth

parent 35f7cd12
Branches
Tags
No related merge requests found
......@@ -5,11 +5,11 @@ ob_start();
require_once(__DIR__ . '/../Models/Ticket.php');
if (!isset($_SESSION["user_id"])) {
session_start();
// if (!isset($_SESSION["user_id"])) {
// // User is not authenticated; redirect to login page
// header("Location: /app/Views/login/login.php");
// ob_end_flush();
// }
if (!isset($_SESSION["user_id"])) {
// User is not authenticated; redirect to login page
header("Location: /app/Views/login/login.php");
ob_end_flush();
}
}
class TicketController {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment