mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 00:35:56 +00:00
backend: force login on init when in single user mode
This commit is contained in:
@@ -76,6 +76,10 @@
|
|||||||
print_error_xml(7); exit;
|
print_error_xml(7); exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SINGLE_USER_MODE) {
|
||||||
|
authenticate_user($link, "admin", null);
|
||||||
|
}
|
||||||
|
|
||||||
if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds"
|
if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds"
|
||||||
&& $op != "rss" && $op != "getUnread" && $op != "publish") {
|
&& $op != "rss" && $op != "getUnread" && $op != "publish") {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user