]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend: force login on init when in single user mode
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 27 Oct 2009 12:27:09 +0000 (15:27 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 27 Oct 2009 12:27:09 +0000 (15:27 +0300)
backend.php

index 925f81087bdeab4799658a191110a08f6b5bebe2..aa8edb7ba81f2b8ba7aa037415a6e2682ec6cb7a 100644 (file)
                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") {