]> git.mxchange.org Git - friendica.git/commitdiff
The internal authentication for XMPP does work again
authorMichael <heluecht@pirati.ca>
Sun, 7 Jan 2018 00:55:20 +0000 (00:55 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 7 Jan 2018 00:55:20 +0000 (00:55 +0000)
src/Util/ExAuth.php

index 555ab861bdbcc65a02b37996942683888f9dd4da..b030169d8cfb764bd3f7ab9dc3bba8f1bb23aedb 100644 (file)
@@ -228,8 +228,9 @@ class ExAuth
 
                        $aUser = dba::select('user', ['uid', 'password'], ['nickname' => $sUser], ['limit' => 1]);
                        if (DBM::is_result($aUser)) {
-                               $uid = User::authenticate($aUser, $aCommand[3]);
-                               $Error = $uid === false;
+                               $uid = $aUser['uid'];
+                               $success = User::authenticate($aUser, $aCommand[3]);
+                               $Error = $success === false;
                        } else {
                                $this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);
                                $Error = true;