Merge pull request #4180 from annando/xmpp-auto-auth
The internal authentication for XMPP does work again
This commit is contained in:
commit
380e85e0c5
|
@ -228,8 +228,9 @@ class ExAuth
|
||||||
|
|
||||||
$aUser = dba::select('user', ['uid', 'password'], ['nickname' => $sUser], ['limit' => 1]);
|
$aUser = dba::select('user', ['uid', 'password'], ['nickname' => $sUser], ['limit' => 1]);
|
||||||
if (DBM::is_result($aUser)) {
|
if (DBM::is_result($aUser)) {
|
||||||
$uid = User::authenticate($aUser, $aCommand[3]);
|
$uid = $aUser['uid'];
|
||||||
$Error = $uid === false;
|
$success = User::authenticate($aUser, $aCommand[3]);
|
||||||
|
$Error = $success === false;
|
||||||
} else {
|
} else {
|
||||||
$this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);
|
$this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);
|
||||||
$Error = true;
|
$Error = true;
|
||||||
|
|
Loading…
Reference in a new issue