feat(security): Ajoute LoginFormAuthenticator et configure la sécurité.

This commit is contained in:
Serreau Jovann
2025-11-22 21:28:08 +01:00
parent 58f45ce84c
commit 3902e4e637
3 changed files with 100 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ security:
check_path: app_login # L'URL où le formulaire POST sera soumis
enable_csrf: true # Active la protection CSRF
csrf_token_id: authenticate # ID du jeton CSRF (doit correspondre à celui dans votre Twig)
entry_point: App\Security\LoginFormAuthenticator
logout:
path: app_logout # La route pour la déconnexion
target: app_login # Redirection après déconnexion réussie

View File

@@ -1,4 +1,4 @@
when@dev:
when@prod:
sentry:
dsn: '%env(SENTRY_DSN)%'
options: