diff --git a/cookbook/security/csrf_in_login_form.rst b/cookbook/security/csrf_in_login_form.rst index 5853bbec647..4f6061c8606 100644 --- a/cookbook/security/csrf_in_login_form.rst +++ b/cookbook/security/csrf_in_login_form.rst @@ -33,7 +33,7 @@ provider available in the Security component: # ... form_login: # ... - csrf_provider: security.csrf.token_manager + csrf_token_generator: security.csrf.token_manager .. code-block:: xml @@ -50,7 +50,7 @@ provider available in the Security component: - + @@ -66,7 +66,7 @@ provider available in the Security component: // ... 'form_login' => array( // ... - 'csrf_provider' => 'security.csrf.token_manager', + 'csrf_token_generator' => 'security.csrf.token_manager', ), ), ), @@ -75,6 +75,10 @@ provider available in the Security component: The Security component can be configured further, but this is all information it needs to be able to use CSRF in the login form. +.. versionadded:: 3.0 + The ``csrf_token_generator`` was introduced in Symfony 3.0. Prior to 2.8, it was called ``csrf_provider``. + + Rendering the CSRF field ------------------------