From: fabrixxm Date: Sat, 13 Jan 2018 08:22:40 +0000 (+0100) Subject: Fix api login X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d0fe7a30f4366436656e5d02016208af67ed621;p=friendica.git Fix api login --- diff --git a/include/api.php b/include/api.php index 740acea50b..9d3bae70a7 100644 --- a/include/api.php +++ b/include/api.php @@ -226,7 +226,7 @@ function api_login(App $a) } } - if (DBM::is_result($record)) { + if (!DBM::is_result($record)) { logger('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG); header('WWW-Authenticate: Basic realm="Friendica"'); //header('HTTP/1.0 401 Unauthorized');