Skip to content

Commit

Permalink
Update use-csrf-protection.md, fix function name sw_csrf (#1341)
Browse files Browse the repository at this point in the history
Do not use the curly braces
  • Loading branch information
waldicom authored Apr 4, 2024
1 parent a20c59e commit 4b3fdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/plugins/plugins/storefront/use-csrf-protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Shopware 6 provides two different mechanisms for token generation:

Therefore, the two new lines are the following:

* The `{{ sw_csrf }}` function is used to generate a valid CSRF token with twig and append it as a hidden input field to the form.
* The `sw_csrf` function is used to generate a valid CSRF token with twig and append it as a hidden input field to the form.

It also accepts a `mode` parameter which can be set to `token` or `input`\(default\):

Expand Down

0 comments on commit 4b3fdc9

Please sign in to comment.