Skip to content

Commit 966601a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Add data-controller="csrf-protection" to CSRF fields
2 parents 7d94c8e + 19942b3 commit 966601a

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
@@ -1016,7 +1016,7 @@ be ``authenticate``:
10161016
<form action="{{ path('app_login') }}" method="post">
10171017
{# ... the login fields #}
10181018

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

10211021
<button type="submit">login</button>
10221022
</form>

0 commit comments

Comments
 (0)