diff --git a/app/pages/credentials.php b/app/pages/credentials.php index ab4793f..f70042b 100644 --- a/app/pages/credentials.php +++ b/app/pages/credentials.php @@ -14,12 +14,6 @@ * - `password`: Change password */ -// Check if user is logged in -if (!isset($_SESSION['user_id'])) { - header("Location: $app_root?page=login"); - exit(); -} - $user_id = $_SESSION['user_id']; // Initialize user object diff --git a/app/pages/security.php b/app/pages/security.php index 95f4a28..457d66b 100644 --- a/app/pages/security.php +++ b/app/pages/security.php @@ -9,11 +9,6 @@ if (!($userObject->hasRight($user_id, 'superuser') || exit; } -if (!Session::getUsername()) { - header('Location: ' . htmlspecialchars($app_root) . '?page=login'); - exit(); -} - // Get current section $section = isset($_POST['section']) ? $_POST['section'] : (isset($_GET['section']) ? $_GET['section'] : 'whitelist');