From c7bec909b4b59ffaaf276c4209d8f9e9d3b5c9bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 22 Aug 2019 10:38:45 +0200 Subject: [PATCH] Fix compatibility with twofactor --- htdocs/api/class/api_login.class.php | 2 +- htdocs/dav/fileserver.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/api/class/api_login.class.php b/htdocs/api/class/api_login.class.php index b2b1f08f8b6..f8616c9722a 100644 --- a/htdocs/api/class/api_login.class.php +++ b/htdocs/api/class/api_login.class.php @@ -64,7 +64,7 @@ class Login // Authentication mode if (empty($dolibarr_main_authentication)) $dolibarr_main_authentication = 'http,dolibarr'; - $dolibarr_main_authentication = preg_replace('/twoauth/', 'dolibarr', $dolibarr_main_authentication); + $dolibarr_main_authentication = preg_replace('/twofactor/', 'dolibarr', $dolibarr_main_authentication); // Authentication mode: forceuser if ($dolibarr_main_authentication == 'forceuser') diff --git a/htdocs/dav/fileserver.php b/htdocs/dav/fileserver.php index dae6565bc93..748f329f89f 100644 --- a/htdocs/dav/fileserver.php +++ b/htdocs/dav/fileserver.php @@ -105,7 +105,7 @@ $authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function ($username, $p // Authentication mode if (empty($dolibarr_main_authentication)) $dolibarr_main_authentication='dolibarr'; - $dolibarr_main_authentication = preg_replace('/twoauth/', 'dolibarr', $dolibarr_main_authentication); + $dolibarr_main_authentication = preg_replace('/twofactor/', 'dolibarr', $dolibarr_main_authentication); // Authentication mode: forceuser if ($dolibarr_main_authentication == 'forceuser')