Fix compatibility with twofactor

Conflicts:
	htdocs/api/class/api_login.class.php
	htdocs/dav/fileserver.php
This commit is contained in:
Laurent Destailleur
2019-08-22 10:38:45 +02:00
parent 9bd229bc7a
commit a19228ccc0
2 changed files with 15 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ class Login
// Authentication mode
if (empty($dolibarr_main_authentication))
$dolibarr_main_authentication = 'http,dolibarr';
$dolibarr_main_authentication = preg_replace('/twofactor/', 'dolibarr', $dolibarr_main_authentication);
// Authentication mode: forceuser
if ($dolibarr_main_authentication == 'forceuser')
{