Commit 3f2016d6 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

correctif cas du user local n'ayant pas d'attribut pour getUsername

parent 1c0e3613
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ abstract class AbstractUser implements UserInterface, ProviderInterface, Recherc
     *
     * @return string
     */
    public function getUsername(string $attribut = "supannAliasLogin")
    public function getUsername(?string $attribut = null)
    {
        return $this->username;
    }
+0 −1
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ 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 = $container->get('Config')['unicaen-auth']['local']['ldap']['username'];
        return new Username($authService, $providerConfig);
    }
}
 No newline at end of file