Fix: add error for login method

This commit is contained in:
Regis Houssin 2011-09-22 14:35:53 +00:00
parent 1b554fee35
commit f38005aea2

View File

@ -55,13 +55,15 @@ function check_authentication($authentication,&$error,&$errorcode,&$errorlabel)
// Validation of login with a third party login module method
if (! $error)
{
$test=true;
if (is_array($conf->login_method_modules) && !empty($conf->login_method_modules))
{
$login = getLoginMethod($authentication['login'],$authentication['password'],$authentication['entity']);
if ($login) $test=false;
if (empty($login)) $error++;
}
else
{
$errorcode='BAD_LOGIN_METHOD'; $errorlabel='Bad value for login method';
}
if ($test) $error++;
}
if ($error)