This commit is contained in:
2024-11-21 08:32:59 +01:00
parent ce7f5a1b4a
commit 1289b22a93
9 changed files with 58 additions and 20 deletions

View File

@ -20,6 +20,7 @@ security:
login_path: app_login
check_path: app_login
enable_csrf: true
default_target_path: /
logout:
path: app_logout
# where to redirect after logout
@ -34,8 +35,11 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
- { path: ^/login, roles: PUBLIC_ACCESS }
- { path: ^/register, roles: PUBLIC_ACCESS }
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/, roles: ROLE_USER }
when@test:
security: