Skip to content

Commit e818e12

Browse files
Add data-controller="csrf-protection" to CSRF fields
1 parent e0eef28 commit e818e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

+1-1
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)