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

Disable signups / invite link #706

Open
1fexd opened this issue Aug 22, 2023 · 3 comments
Open

Disable signups / invite link #706

1fexd opened this issue Aug 22, 2023 · 3 comments

Comments

@1fexd
Copy link

1fexd commented Aug 22, 2023

Hello,

is there a way to only allow sign ups with a link or some sort of invite token that the server administrator has to generate? Or if not, is it possible to disable signups alltogether and insert users directly into the database?

Thanks!

@moughxyz
Copy link
Member

I believe the env var DISABLE_USER_REGISTRATION is what you're looking for. You'd set this to true after you finish registering for your account.

@1fexd
Copy link
Author

1fexd commented Aug 23, 2023

Thanks! Is this documented somewhere? Cause I didn't find anything, but it should be documented

@1fexd
Copy link
Author

1fexd commented Sep 3, 2023

For anyone having the same question, the environment variable is actually called AUTH_SERVER_DISABLE_USER_REGISTRATION (https://github.com/standardnotes/server/blob/main/docker/docker-entrypoint.sh#L130). This shoud absolutely be documented in the self hosted guide.

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