diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 7b07d7a..f35b7a4 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -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: