mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Merge branch 'ent-9457-14121-llamadas-api-no-funcionan-con-usuario-ldap-con-login-error' into 'develop'
API and LDAP remote user fix with login error fix See merge request artica/pandorafms!5135
This commit is contained in:
commit
3f37e2556c
@ -305,7 +305,7 @@ function process_user_login_remote($login, $pass, $api=false)
|
|||||||
|
|
||||||
// Authentication ok, check if the user exists in the local database
|
// Authentication ok, check if the user exists in the local database
|
||||||
if (is_user($login)) {
|
if (is_user($login)) {
|
||||||
if (!user_can_login($login)) {
|
if (!user_can_login($login) && $api === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user