From f7d3ba26c851fe14f0a1a86972ec44873bff97f6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 Jan 2018 00:55:20 +0000 Subject: [PATCH] The internal authentication for XMPP does work again --- src/Util/ExAuth.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index 555ab861bd..b030169d8c 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -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;