Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Add data-controller="csrf-protection" to CSRF fields
  • Loading branch information
javiereguiluz committed Jan 7, 2025
2 parents bb93f22 + 05f70cc commit 133ce56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ be ``authenticate``:
<form action="{{ path('app_login') }}" method="post">
{# ... the login fields #}

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

<button type="submit">login</button>
</form>
Expand Down

0 comments on commit 133ce56

Please sign in to comment.