We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05392d commit 6fc7aebCopy full SHA for 6fc7aeb
config/packages/security.yaml
@@ -50,6 +50,10 @@ security:
50
# The name of the route to redirect to after logging out
51
target: homepage
52
53
+ # Secure the logout against CSRF
54
+ csrf_parameter: logout
55
+ csrf_token_generator: security.csrf.token_manager
56
+
57
# needed because in tests we redefine the 'main' firewall to use
58
# HTTP Basic instead of the login form, so this firewall has
59
# multiple authenticators
templates/base.html.twig
@@ -83,7 +83,7 @@
83
</li>
84
<li class="divider"></li>
85
<li>
86
- <a href="{{ path('security_logout') }}">
+ <a href="{{ logout_path() }}">
87
<i class="fa fa-sign-out" aria-hidden="true"></i> {{ 'menu.logout'|trans }}
88
</a>
89
0 commit comments