Home > OS >  Symfony make:auth command
Symfony make:auth command

Time:05-20

I create a website with symfony 6 and I'd like to add an authentication system.

I see that symfony console make:auth command exist, but I can't use it with Symfony 6 ?

I got this error : [ERROR] MakerBundle only supports the new authenticator based security system. See https://symfony.com/doc/current/security.html.

Someone has a tutorial to create login forms and registration form (cause I tryed to use documentation and for registration form I got another error, one of (Exception) class is not founded...)

CodePudding user response:

You can check at security bundle config file located at config/packages/security.yaml. Make sure enable_authenticator_manager setting is there.

If the value is false, set it to true. If none, add it under security section.

security:
    # add line below
    enable_authenticator_manager: true 

Then execute make:auth again

  • Related