Skip to content

Commit 133ce56

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Add data-controller="csrf-protection" to CSRF fields
2 parents bb93f22 + 05f70cc commit 133ce56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy