1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

api: default to admin username when logging in in single user mode

This commit is contained in:
Andrew Dolgov 2011-02-07 13:38:03 +03:00
parent b899847009
commit 4909f981ce

View File

@ -78,6 +78,8 @@
$uid = 0;
}
if (SINGLE_USER_MODE) $login = "admin";
if ($uid && get_pref($link, "ENABLE_API_ACCESS", $uid)) {
if (authenticate_user($link, $login, $password)) { // try login with normal password
print api_wrap_reply(API_STATUS_OK, $seq,