Add possibility to include login method in a module

This commit is contained in:
Regis Houssin 2010-08-24 14:18:38 +00:00
parent 4c105c7a40
commit 7408c18ca6

View File

@ -287,7 +287,7 @@ if (! defined('NOLOGIN'))
$authmode=explode(',',$dolibarr_main_authentication);
// No authentication mode
if (! sizeof($authmode) && is_array($conf->login_method_modules) && !empty($conf->login_method_modules))
if (! sizeof($authmode) && empty($conf->login_method_modules))
{
$langs->load('main');
dol_print_error('',$langs->trans("ErrorConfigParameterNotDefined",'dolibarr_main_authentication'));