ability to login restored

This commit is contained in:
Tykayn 2025-02-14 15:58:24 +01:00 committed by tykayn
parent d01ecdabba
commit 7ad6f2d823
5 changed files with 118 additions and 116 deletions

View file

@ -4,7 +4,7 @@ namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class SecurityController extends AbstractController
@ -25,9 +25,8 @@ class SecurityController extends AbstractController
}
#[Route(path: '/logout', name: 'app_logout')]
public function logout(): Response
public function logout(): void
{
return $this->redirectToRoute('app_default');
throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');
}
}