diff --git a/Resources/doc/installation.md b/Resources/doc/installation.md index ec95f494..a91203df 100644 --- a/Resources/doc/installation.md +++ b/Resources/doc/installation.md @@ -57,8 +57,11 @@ security: 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 - # This ensures that the form can only be accessed when two-factor authentication is in progress + # The path patterns shown here have to be updated according to your routes, if you're going with something custom access_control: + # This makes the logout route available during two-factor authentication, allows the user to cancel + - { path: ^/logout, role: IS_AUTHENTICATED_ANONYMOUSLY } + # This ensures that the form can only be accessed when two-factor authentication is in progress - { path: ^/2fa, role: IS_AUTHENTICATED_2FA_IN_PROGRESS } ```