@@ -650,33 +650,18 @@ Most websites have a login form where users authenticate using an
650
650
identifier (e.g. email address or username) and a password. This
651
651
functionality is provided by the built-in :class: `Symfony\\ Component\\ Security\\ Http\A uthenticator\\ FormLoginAuthenticator `.
652
652
653
- `MakerBundle ` has a new ``make:security:form-login `` command that was introduced
654
- in ``v1.x.x `` that will generate the controller, twig template, and configure
655
- ``security.yaml `` after answering a couple of questions:
653
+ You can run the following command to create everything needed to add a login
654
+ form in your application:
656
655
657
656
.. code-block :: terminal
658
657
659
658
$ php bin/console make:security:form-login
660
659
661
- Choose a name for the controller class (e.g. SecurityController) [SecurityController]:
662
- > SecurityController
660
+ This command will create the required controller and template and it will also
661
+ update the security configuration. Alternatively, if you prefer to make these
662
+ changes manually, follow the next steps.
663
663
664
- Do you want to generate a '/logout' URL? (yes/no) [yes]:
665
- > y
666
-
667
- created: src/Controller/SecurityController.php
668
- created: templates/security/login.html.twig
669
- updated: config/packages/security.yaml
670
-
671
-
672
- Success!
673
-
674
-
675
- Next: Review and adapt the login template: security/login.html.twig to suite your needs.
676
-
677
- WooHoo! You're all set to start authenticating users.
678
-
679
- If you prefer to do this manually, first, create a controller for the login form:
664
+ First, create a controller for the login form:
680
665
681
666
.. code-block :: terminal
682
667
0 commit comments