Skip to content
Snippets Groups Projects
Commit c0013a45 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: When using a disabled user, web service must be forbidden

parent 6d7aba45
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,12 @@ function check_authentication($authentication,&$error,&$errorcode,&$errorlabel)
$errorcode='BAD_CREDENTIALS'; $errorlabel='Bad value for login or password';
}
if (! $error && $fuser->statut == 0)
{
$error++;
$errorcode='ERROR_USER_DISABLED'; $errorlabel='This user has been locked or disabled';
}
// Validation of login
if (! $error)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment