Merge pull request #4180 from annando/xmpp-auto-auth

The internal authentication for XMPP does work again
pull/4181/head
Hypolite Petovan 2018-01-06 19:59:13 -05:00 zatwierdzone przez GitHub
commit 380e85e0c5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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