Commit 024765dc authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Recuperation de la bonne config

parent 104946df
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class UsernameServiceFactory implements FactoryInterface
        $authService = $container->get('zfcuser_auth_service'); /* @var $authService \Laminas\Authentication\AuthenticationService */
//        $authService = $container->get('Laminas\Authentication\AuthenticationService'); /* @var $authService \Laminas\Authentication\AuthenticationService */

        $usernamefield = $config['unicaen-auth']['local']['ldap']['username'];
        $usernamefield = $container->get('Config')['unicaen-auth']['local']['ldap']['username'];
        return new Username($authService, $providerConfig);
    }
}
 No newline at end of file