mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-08-14 14:28:38 +02:00
API and LDAP remote user fix with login error fix
This commit is contained in:
parent
b7bef2dd58
commit
9499da3176
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user