backend: force login on init when in single user mode
This commit is contained in:
parent
95d0edcc4e
commit
9c88320833
|
@ -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") {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue