summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-15 16:01:44 +0300
committerAndrew Dolgov <[email protected]>2018-10-15 16:01:44 +0300
commita00198823d1147f0b1fa6309c1cfdc3cc6cf4aee (patch)
tree865e091933f73bf11101e560749e70c658ab274c /backend.php
parent2a029c40505796c19a7fd4f86e140da2e5c548a4 (diff)
remove 402 cookie-check code because it's no longer needed
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/backend.php b/backend.php
index 9af5509..7fb610e 100644
--- a/backend.php
+++ b/backend.php
@@ -6,14 +6,6 @@
define('STATIC_EXPIRES', 86400*14);
- // let's not start a session if there's no cookie, login is impossible
- // via backend anyway
- if (!isset($_COOKIE['epube_sid'])) {
- header($_SERVER["SERVER_PROTOCOL"]." 402 Unauthorized");
- echo "Unauthorized";
- die;
- }
-
require_once "sessions.php";
require_once "db.php";