Skip to content

Disable registration on selfhosted server #2476

Answered by mnvr
pinpox asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible currently. However, if you've not configured email (or disable it after you've created your users), then there will not be a way for people to register since they cannot get the OTP.

Alternatively, once you have registered all the users you need, you can then disable registration by re-deploying museum after commenting out the following line -

userID, _, err = c.createUser(email, source)

This will stop new accounts from being created.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mnvr
Comment options

@neferin12
Comment options

@mnvr
Comment options

@pinpox
Comment options

@mnvr
Comment options

Answer selected by pinpox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants