Merge pull request #7421 from MrPetovan/task/7338-app-specific-password

Enable two-factor app-specific passwords for ejabberd
This commit is contained in:
Philipp 2019-07-23 14:12:47 +02:00 committed by GitHub
commit 8195a78fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class ExAuth
$aUser = DBA::selectFirst('user', ['uid', 'password', 'legacy_password'], ['nickname' => $sUser]);
if (DBA::isResult($aUser)) {
$uid = $aUser['uid'];
$success = User::authenticate($aUser, $aCommand[3]);
$success = User::authenticate($aUser, $aCommand[3], true);
$Error = $success === false;
} else {
$this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);