From 6fd298bc37fc3085f7d8f2c507fe52cc28b2dfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 5 Nov 2024 11:33:23 +0100 Subject: [PATCH 1/2] docs: minor upgrade --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 45e700a4..c171d0f7 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ Core features are provided by `scheb/2fa-bundle`: - CSRF protection - Whitelisted routes (accessible during two-factor authentication) - Fully customizable conditions when to perform two-factor authentication -- Future proof: Supports the [authenticator-based security system](https://symfony.com/doc/current/security/experimental_authenticators.html), - which will replace the current system in Symfony 6 +- Supports the new [authenticator-based security system](https://symfony.com/doc/current/security.html), + introduced in Symfony 6, as well as the legacy system. Additional features: From ac8312230f7ffff1328515764c7173eda20a1ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 5 Nov 2024 14:58:17 +0100 Subject: [PATCH 2/2] recommend new controller syntax --- doc/installation.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/installation.rst b/doc/installation.rst index f458e33d..60afe804 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -84,10 +84,9 @@ authentication. # config/routes/scheb_2fa.yaml 2fa_login: path: /2fa - defaults: - # "scheb_two_factor.form_controller" references the controller service provided by the bundle. - # You don't HAVE to use it, but - except you have very special requirements - it is recommended. - _controller: "scheb_two_factor.form_controller::form" + # "scheb_two_factor.form_controller" references the controller service provided by the bundle. + # You don't HAVE to use it, but - except you have very special requirements - it is recommended. + controller: "scheb_two_factor.form_controller::form" 2fa_login_check: path: /2fa_check