Fix: On limite l'authentification à celle configurée.

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'); // Example: array('forceuser');
$authmode=array(); $authmode=array();
// Authentication mode: http // Authentication mode: non defini (cas de compatibilite ascendante)
if (! $dolibarr_main_authentication || $dolibarr_main_authentication == 'http') if (! $dolibarr_main_authentication)
{ {
// Mode par defaut, on test http + dolibarr // Mode par defaut, on test http + dolibarr
$authmode=array('http','dolibarr'); $authmode=array('http','dolibarr');
} }
// Authentication mode: http
if ($dolibarr_main_authentication == 'http')
{
$authmode=array('http');
}
// Authentication mode: dolibarr // Authentication mode: dolibarr
if ($dolibarr_main_authentication == 'dolibarr') if ($dolibarr_main_authentication == 'dolibarr')
{ {