fix(config): fix firewall config
add entry_point remove anonymous
This commit is contained in:
parent
70bac192e2
commit
0f4767b8e0
|
@ -25,7 +25,6 @@ security:
|
|||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
main:
|
||||
anonymous: ~
|
||||
two_factor:
|
||||
auth_form_path: 2fa_login # The route name you have used in the routes.yaml
|
||||
check_path: 2fa_login_check # The route name you have used in the routes.yaml
|
||||
|
@ -35,7 +34,7 @@ security:
|
|||
form_login:
|
||||
login_path: auth_login
|
||||
check_path: auth_login
|
||||
csrf_token_generator: security.csrf.token_manager
|
||||
enable_csrf: true
|
||||
logout:
|
||||
path: auth_logout
|
||||
target: /
|
||||
|
@ -44,6 +43,8 @@ security:
|
|||
lifetime: 604800
|
||||
path: /
|
||||
|
||||
entry_point: form_login
|
||||
|
||||
# Easy way to control access for large sections of your site
|
||||
# Note: Only the *first* access control that matches will be used
|
||||
access_control:
|
||||
|
|
Loading…
Reference in New Issue