Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e818e12

Browse filesBrowse files
Add data-controller="csrf-protection" to CSRF fields
1 parent e0eef28 commit e818e12
Copy full SHA for e818e12

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎security.rst

Copy file name to clipboardExpand all lines: security.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ be ``authenticate``:
10281028
<form action="{{ path('app_login') }}" method="post">
10291029
{# ... the login fields #}
10301030

1031-
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
1031+
<input type="hidden" name="_csrf_token" data-controller="csrf-protection" value="{{ csrf_token('authenticate') }}">
10321032

10331033
<button type="submit">login</button>
10341034
</form>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.