Skip to content
Snippets Groups Projects
Commit 4909f981 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

parent b8998470
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment