From 9499da3176cf42be275ec210fabfbbe872a88525 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 22 Sep 2022 12:34:40 +0200 Subject: [PATCH] API and LDAP remote user fix with login error fix --- pandora_console/include/auth/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index 67053ab0be..cf11f7fc5f 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -289,7 +289,7 @@ function process_user_login_remote($login, $pass, $api=false) // Authentication ok, check if the user exists in the local database if (is_user($login)) { - if (!user_can_login($login)) { + if (!user_can_login($login) && $api === false) { return false; }