1
1
Fork 0

Enable two-factor app-specific passwords for ejabberd

This commit is contained in:
Hypolite Petovan 2019-07-23 05:11:33 -04:00
parent 64b10205bc
commit 3812d3d445

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