From 2d0fe7a30f4366436656e5d02016208af67ed621 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Sat, 13 Jan 2018 09:22:40 +0100 Subject: [PATCH] Fix api login --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5