8000 adding note that CSRF protection has to be enabled in config · symfony/symfony-docs@b948747 · GitHub
[go: up one dir, main page]

Skip to content

Commit b948747

Browse files
JensPliesterxabbuh
authored andcommitted
adding note that CSRF protection has to be enabled in config
This issue should be mentioned in the guide. If CSRF Protection is disabled, Symfony won't find the CSRF-Token manager, implicating a missing package. But all was needed was setting csrf_protection to true in config.yml.
1 parent 31a0a09 commit b948747

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/csrf_in_login_form.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ provider available in the Security component:
7474
7575
The Security component can be configured further, but this is all information
7676
it needs to be able to use CSRF in the login form.
77+
Note: Make sure that CSRF Protection is enabled in ``config.yml``.
7778

7879
Rendering the CSRF field
7980
------------------------

0 commit comments

Comments
 (0)
0