Fix: On limite l'authentification à celle configurée.
This commit is contained in:
parent
7973eac1a1
commit
54b95f4f21
@ -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')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user