Add form login screen

This commit is contained in:
Tim
2021-12-29 02:00:02 +01:00
parent 89d1a3d6a7
commit 680a0841b8
8 changed files with 111 additions and 26 deletions

View File

@ -18,8 +18,14 @@ security:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
lazy: true
# lazy: true
provider: app_user_provider
form_login:
login_path: login
check_path: login
enable_csrf: true
logout:
path: logout
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
@ -30,7 +36,7 @@ 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: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
when@test: