我用 symfony 6 創建了一個網站,我想添加一個身份驗證系統。
我看到該symfony console make:auth命令存在,但我不能在 Symfony 6 中使用它?
我收到了這個錯誤:[ERROR] MakerBundle only supports the new authenticator based security system. See https://symfony.com/doc/current/security.html。
有人有一個創建登錄表單和注冊表單的教程(因為我嘗試使用檔案和注冊表單我得到了另一個錯誤,一個(例外)類沒有建立......)
uj5u.com熱心網友回復:
您可以查看位于config/packages/security.yaml. 確保enable_authenticator_manager設定在那里。
如果值為false,請將其設定為true。如果沒有,請將其添加到security部分下。
security:
# add line below
enable_authenticator_manager: true
然后make:auth再次執行
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/479287.html
