Fix: On limite l'authentification celle configure.

This commit is contained in:
Laurent Destailleur 2007-05-21 21:44:17 +00:00
parent 7973eac1a1
commit 54b95f4f21

View File

@ -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')
{