Selaa lähdekoodia

[Web] Fix catch block in LDAP connection test

FreddleSpl0it 1 vuosi sitten
vanhempi
sitoutus
82fcddb177
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      data/web/inc/functions.inc.php

+ 1 - 3
data/web/inc/functions.inc.php

@@ -2373,9 +2373,7 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
           ]);
           try {
             $provider->connect();
-          } catch (TypeError $e) {
-            return false;
-          } catch (\LdapRecord\Auth\BindException $e) {
+          } catch (Throwable $e) {
             return false;
           }
         break;