How to definitely disable registration in FOSUserBundle

后端 未结 7 2443
无人及你
无人及你 2021-02-19 03:02

In my project, I allow only one user to manage the content of the website. This user will be added using the command line at first.

Now, I want to get the registration a

7条回答
  •  滥情空心
    2021-02-19 03:21

    If you use the JMSSecurityExtraBundle you can use the denyAll directive like so:

    - { path: ^/register, access: denyAll }

提交回复
热议问题