From: Andrew Dolgov Date: Tue, 27 Oct 2009 12:27:09 +0000 (+0300) Subject: backend: force login on init when in single user mode X-Git-Tag: 1.4.0~188^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9c883208331e2e950cd5a8260b711021c34bc098;p=tt-rss.git backend: force login on init when in single user mode --- diff --git a/backend.php b/backend.php index 925f8108..aa8edb7b 100644 --- a/backend.php +++ b/backend.php @@ -75,7 +75,11 @@ header("Content-Type: application/xml"); print_error_xml(7); exit; } - + + if (SINGLE_USER_MODE) { + authenticate_user($link, "admin", null); + } + if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds" && $op != "rss" && $op != "getUnread" && $op != "publish") {