public function setRedirect(FormEvent $event)
    {
        $targetPath = $this->getTargetPath($event->getRequest());

        if ($targetPath) {
            $event->setResponse(new RedirectResponse($targetPath));

            return;
        }

        $this->setRedirecToLogin($event);
    }