Enable two-factor app-specific passwords for ejabberd
This commit is contained in:
parent
64b10205bc
commit
3812d3d445
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class ExAuth
|
||||||
$aUser = DBA::selectFirst('user', ['uid', 'password', 'legacy_password'], ['nickname' => $sUser]);
|
$aUser = DBA::selectFirst('user', ['uid', 'password', 'legacy_password'], ['nickname' => $sUser]);
|
||||||
if (DBA::isResult($aUser)) {
|
if (DBA::isResult($aUser)) {
|
||||||
$uid = $aUser['uid'];
|
$uid = $aUser['uid'];
|
||||||
$success = User::authenticate($aUser, $aCommand[3]);
|
$success = User::authenticate($aUser, $aCommand[3], true);
|
||||||
$Error = $success === false;
|
$Error = $success === false;
|
||||||
} else {
|
} else {
|
||||||
$this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);
|
$this->writeLog(LOG_WARNING, 'user not found: ' . $sUser);
|
||||||
|
|
Loading…
Reference in a new issue