From 3812d3d4459cd0c05227d59b17907a26ef4839ab Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 23 Jul 2019 05:11:33 -0400 Subject: [PATCH] Enable two-factor app-specific passwords for ejabberd --- src/Util/ExAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index d341682e80..46452f6e4e 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -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); -- 2.39.5