Skip to content

Update csrf_in_login_form.rst #3819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cookbook/security/csrf_in_login_form.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. index::
single: Security; CSRF in the Login Form
single: Security; CSRF Protection in the Login Form

Using CSRF in the Login Form
============================
Using CSRF Protection in the Login Form
=======================================

When using a login form, you should make sure that you are protected against CSRF
(`Cross-site request forgery`_). The Security component already has built-in support
Expand All @@ -13,11 +13,11 @@ for CSRF. In this article you'll learn how you can use it in your login form.
Login CSRF attacks are a bit less well-known. See `Forging Login Requests`_
if you're curious about more details.

Configuring CSRF
----------------
Configuring CSRF Protection
---------------------------

First, configure the Security component so it can use CSRF protection.
The Security component needs a CSRF provider. You can set this to use the default
The Security component needs a CSRF token provider. You can set this to use the default
provider available in the Form component:

.. configuration-block::
Expand Down