protected function addLogSuccess(UserInterface $user)
    {
        $this->userManager->updateUser($user);

        $authLog = $this->createAuthLog();
        $authLog->setSuccess(true);
        $authLog->setUser($user);
        $authLog->setUsername($user->getUsername());

        $this->em->persist($authLog);
        $this->em->flush();
    }