]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'upstream/develop' into receive_participation
authorMichael <heluecht@pirati.ca>
Sat, 13 Jan 2018 08:29:44 +0000 (08:29 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 13 Jan 2018 08:29:44 +0000 (08:29 +0000)
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');