The internal authentication for XMPP does work again

This commit is contained in:
Michael 2018-01-07 00:55:20 +00:00
parent 6e7abb726c
commit f7d3ba26c8
1 changed files with 3 additions and 2 deletions

View 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;