1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-02 03:38:23 +02:00

[Web] check if $iam_provider is null on ldap_mbox_login

This commit is contained in:
FreddleSpl0it 2024-10-09 12:34:39 +02:00
parent 0b9b8c9060
commit f9304dcd9b
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -491,6 +491,9 @@ function ldap_mbox_login($user, $pass, $iam_settings, $extra = null){
}
return false;
}
if (!$iam_provider) {
return false;
}
try {
$ldap_query = $iam_provider->query();