Skip to content

Commit 9262483

Browse files
Consistent naming of FormLoginAuthenticator
Reason: Make it more clear that we're always talking about the same **built-in** thing.
1 parent 4d40cfd commit 9262483

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

security.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ Form Login
660660

661661
Most websites have a login form where users authenticate using an
662662
identifier (e.g. email address or username) and a password. This
663-
functionality is provided by the *form login authenticator*.
663+
functionality is provided by the built-in :class:`Symfony\\Component\\Security\\Http\Authenticator\\FormLoginAuthenticator`.
664664

665665
First, create a controller for the login form:
666666

@@ -691,7 +691,7 @@ First, create a controller for the login form:
691691
}
692692
}
693693
694-
Then, enable the form login authenticator using the ``form_login`` setting:
694+
Then, enable the ``FormLoginAuthenticator`` using the ``form_login`` setting:
695695

696696
.. configuration-block::
697697

@@ -784,8 +784,8 @@ Edit the login controller to render the login form:
784784
}
785785
}
786786
787-
Don't let this controller confuse you. Its job is only to *render* the form:
788-
the ``form_login`` authenticator will handle the form *submission* automatically.
787+
Don't let this controller confuse you. Its job is only to *render* the form.
788+
The ``FormLoginAuthenticator`` will handle the form *submission* automatically.
789789
If the user submits an invalid email or password, that authenticator will store
790790
the error and redirect back to this controller, where we read the error (using
791791
``AuthenticationUtils``) so that it can be displayed back to the user.
@@ -857,7 +857,7 @@ To review the whole process:
857857
#. The ``/login`` page renders login form via the route and controller created
858858
in this example;
859859
#. The user submits the login form to ``/login``;
860-
#. The security system (i.e. the ``form_login`` authenticator) intercepts the
860+
#. The security system (i.e. the ``FormLoginAuthenticator``) intercepts the
861861
request, checks the user's submitted credentials, authenticates the user if
862862
they are correct, and sends the user back to the login form if they are not.
863863

0 commit comments

Comments
 (0)