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 8a5f600 commit ea1dea0Copy full SHA for ea1dea0
security/csrf.rst
@@ -108,6 +108,15 @@ this can be customized on a form-by-form basis::
108
// ...
109
}
110
111
+You can also customize the rendering of the CSRF form field creating a custom
112
+:doc:`form theme </form/form_themes>` and using ``csrf_token`` as the prefix of
113
+the field (e.g. define ``{% block csrf_token_widget %} ... {% endblock %}`` to
114
+customize the entire form field contents).
115
+
116
+.. versionadded:: 4.3
117
118
+ The ``csrf_token`` form field prefix was introduced in Symfony 4.3.
119
120
CSRF Protection in Login Forms
121
------------------------------
122
0 commit comments