]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Update application/security/LoginManager.php
authorSébastien NOBILI <s-code-github@pipoprods.org>
Wed, 3 Jun 2020 08:36:04 +0000 (10:36 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 08:36:04 +0000 (10:36 +0200)
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
application/security/LoginManager.php

index e34e0efacddf9694a52b10890652441959d32082..5f395a8717ad567f404947adb6f82b9fb369afea 100644 (file)
@@ -206,7 +206,12 @@ class LoginManager
     {
         $connect = $connect ?? function($host) { return ldap_connect($host); };
         $bind = $bind ?? function($handle, $dn, $password) { return ldap_bind($handle, $dn, $password); };
-        return $bind($connect($this->configManager->get('ldap.host')), sprintf($this->configManager->get('ldap.dn'), $login), $password);
+
+        return $bind(
+            $connect($this->configManager->get('ldap.host')),
+            sprintf($this->configManager->get('ldap.dn'), $login), 
+            $password
+        );
     }
 
     /**