From 4b27a3dcd693bee88fe48e061b4643982059d9d9 Mon Sep 17 00:00:00 2001 From: Detract Date: Mon, 11 Dec 2017 07:47:55 +0100 Subject: [PATCH] Applications using Symfony Flex needs to require form Applications using Symfony Flex needs to require form before using {{ csrf_token('authenticate') }} --- security/csrf_in_login_form.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/security/csrf_in_login_form.rst b/security/csrf_in_login_form.rst index b7fc2ded46a..51d73d6064b 100644 --- a/security/csrf_in_login_form.rst +++ b/security/csrf_in_login_form.rst @@ -162,6 +162,15 @@ using the login form: After this, you have protected your login form against CSRF attacks. +.. caution:: + + In applications using :doc:`Symfony Flex `, run this command to + install the form feature before using it: + + .. code-block:: terminal + + $ composer require form + .. tip:: You can change the name of the field by setting ``csrf_parameter`` and change 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