mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
api: default to admin username when logging in in single user mode
This commit is contained in:
@@ -78,6 +78,8 @@
|
|||||||
$uid = 0;
|
$uid = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SINGLE_USER_MODE) $login = "admin";
|
||||||
|
|
||||||
if ($uid && get_pref($link, "ENABLE_API_ACCESS", $uid)) {
|
if ($uid && get_pref($link, "ENABLE_API_ACCESS", $uid)) {
|
||||||
if (authenticate_user($link, $login, $password)) { // try login with normal password
|
if (authenticate_user($link, $login, $password)) { // try login with normal password
|
||||||
print api_wrap_reply(API_STATUS_OK, $seq,
|
print api_wrap_reply(API_STATUS_OK, $seq,
|
||||||
|
|||||||
Reference in New Issue
Block a user