Expand user and allow everybody to register
Automatically login after registering
This commit is contained in:
@ -39,8 +39,8 @@ security:
|
||||
# Note: Only the *first* access control that matches will be used
|
||||
access_control:
|
||||
- { path: ^/login$, role: PUBLIC_ACCESS }
|
||||
- { path: ^/register, role: PUBLIC_ACCESS }
|
||||
- { path: ^/logout$, role: ROLE_USER }
|
||||
- { path: ^/register, role: ROLE_ADMIN }
|
||||
- { path: ^/admin, role: ROLE_ADMIN }
|
||||
|
||||
- { path: ^/, role: ROLE_USER }
|
||||
|
@ -1,5 +1,6 @@
|
||||
twig:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
form_themes: ['bootstrap_5_layout.html.twig']
|
||||
|
||||
when@test:
|
||||
twig:
|
||||
|
Reference in New Issue
Block a user