]> git.mxchange.org Git - friendica.git/commitdiff
Enable two-factor app-specific passwords for ejabberd
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Jul 2019 09:11:33 +0000 (05:11 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Jul 2019 09:11:33 +0000 (05:11 -0400)
src/Util/ExAuth.php

index d341682e806d04419743f9d5f698b87d375f395e..46452f6e4e156132bbf68e9bd2044d0265cc8800 100644 (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);