public function updateLastLogin(InteractiveLoginEvent $event)
    {
        $user = $event
            ->getAuthenticationToken()
            ->getUser();

        if ($user instanceof LastLoginInterface) {
            $now = $this
                ->dateTimeFactory
                ->create();

            $user->setLastLoginAt($now);

            $this
                ->objectManagerProvider
                ->getManagerByEntityNamespace(get_class($user))
                ->flush($user);
        }

        return $this;
    }