mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 18:06:01 +00:00
[Web] Fix catch block in LDAP connection test
This commit is contained in:
@@ -2373,9 +2373,7 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
|
|||||||
]);
|
]);
|
||||||
try {
|
try {
|
||||||
$provider->connect();
|
$provider->connect();
|
||||||
} catch (TypeError $e) {
|
} catch (Throwable $e) {
|
||||||
return false;
|
|
||||||
} catch (\LdapRecord\Auth\BindException $e) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user