[Web] Fix catch block in LDAP connection test

This commit is contained in:
FreddleSpl0it 2024-09-02 10:12:51 +02:00
parent 320bd31d37
commit 82fcddb177
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -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;