Skip to content
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

Add Config option to disable registration #13

Open
enthus1ast opened this issue Dec 9, 2020 · 2 comments
Open

Add Config option to disable registration #13

enthus1ast opened this issue Dec 9, 2020 · 2 comments

Comments

@enthus1ast
Copy link

Currently the registration cannot be disabled (it seems).
Please add an option to the config that this can be disabled.

@I-Valchev
Copy link
Member

What do you mean disable the registration?

If it's about the /register endpoint, you should be able to override the route in routes.yaml and then it won't be reachable.

@enthus1ast
Copy link
Author

yes its about the register endpoint.
I still think it would be good to just disable this in the plugins config.
Since it its a plugin feature, that must be disabled in the global routes config.

I've added this to my routes.yml:

# ------------------------------------------------------------------------------
# Place your own routes here, that have a HIGHER priority than the default routes.

# Disable the registration added by bolt/users
foo:
  path: /register
  methods: []
  defaults:
    _controller: Bolt\Controller\Frontend\DetailController::renderTemplate
    template: 404.twig

# ------------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants