]> git.mxchange.org Git - friendica.git/commitdiff
Fix api login
authorfabrixxm <fabrix.xm@gmail.com>
Sat, 13 Jan 2018 08:22:40 +0000 (09:22 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Jan 2018 08:22:40 +0000 (09:22 +0100)
include/api.php

index 740acea50b2b4e3aa8ec4aeddd8eb6b897488edb..9d3bae70a7f9e03f61468f5d173ec2d1ff9833df 100644 (file)
@@ -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');