From 54b95f4f21962c1d913c12bd2b0463de8b4bf1b3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Mon, 21 May 2007 21:44:17 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20On=20limite=20l'authentification=20=E0?= =?UTF-8?q?=20celle=20configur=E9e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 5c9827502e4..d468a0d3364 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -96,12 +96,18 @@ dolibarr_syslog("Session name=".$sessionname." Session id()=".session_id().", _S // Example: array('forceuser'); $authmode=array(); -// Authentication mode: http -if (! $dolibarr_main_authentication || $dolibarr_main_authentication == 'http') +// Authentication mode: non defini (cas de compatibilite ascendante) +if (! $dolibarr_main_authentication) { // Mode par defaut, on test http + dolibarr $authmode=array('http','dolibarr'); } + +// Authentication mode: http +if ($dolibarr_main_authentication == 'http') +{ + $authmode=array('http'); +} // Authentication mode: dolibarr if ($dolibarr_main_authentication == 'dolibarr') { -- GitLab