Admin console now required login

This commit is contained in:
2024-07-28 17:14:01 -04:00
parent 46d117a95b
commit c03d6bb549
3 changed files with 82 additions and 0 deletions

View File

@@ -16,6 +16,14 @@ security:
main:
lazy: true
provider: app_user_provider
form_login:
login_path: app_login
check_path: app_login
enable_csrf: true
logout:
path: app_logout
# where to redirect after logout
# target: app_any_route
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
@@ -28,6 +36,7 @@ security:
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
- { path: ^/admin, roles: ROLE_ADMIN }
when@test:
security: