mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: add error for login method
This commit is contained in:
parent
1b554fee35
commit
f38005aea2
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user