diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index bb977207f0..b3012853d3 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -305,7 +305,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; }