about summary refs log tree commit diff stats
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/backend.php b/backend.php
index 631c667..9d08e1a 100644
--- a/backend.php
+++ b/backend.php
@@ -1,10 +1,4 @@
 <?php
-	if (!isset($_COOKIE['epube_sid'])) {
-		header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized");
-		echo "Unauthorized";
-		exit;
-	}
-
 	header("Content-type: text/json");
 
 	require_once __DIR__ . "/include/common.php";
@@ -15,12 +9,6 @@
 	define('STATIC_EXPIRES', 86400*14);
 	define('PAGE_RESET_PROGRESS', -1);
 
-	if (!validate_session()) {
-		header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized");
-		echo "Unauthorized";
-		exit;
-	}
-
 	$op = $_REQUEST["op"] ?? "";
 
 	$router = new Router();