Skip to content

Config change added #10769

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
17 changes: 16 additions & 1 deletion security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ and your generated code may be slightly different:

Choose a name for the controller class (e.g. SecurityController) [SecurityController]:
> SecurityController

Enter the User class that you want to authenticate (e.g. App\Entity\User) [App\Entity\User]:
> App\Entity\User

created: src/Security/LoginFormAuthenticator.php
updated: config/packages/security.yaml
Expand All @@ -42,7 +45,19 @@ and your generated code may be slightly different:

This generates three things: (1) a login route & controller, (2) a template that
renders the login form and (3) a :doc:`Guard authenticator </security/guard_authentication>`
class that processes the login submit.
class that processes the login submit.

Security configuration is updated with definition of authenticator:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Security configuration is updated with definition of authenticator:
Security configuration is updated with the definition of the Guard authenticator:


.. configuration-block::

.. code-block:: yaml
main:
anonymous: true
+ guard:
+ authenticators:
+ - App\Security\LoginFormAuthenticator


The ``/login`` route & controller::

Expand Down