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

A method to disable sign-ups? #4

Closed
Entheologian opened this issue May 7, 2023 · 3 comments · Fixed by #5
Closed

A method to disable sign-ups? #4

Entheologian opened this issue May 7, 2023 · 3 comments · Fixed by #5

Comments

@Entheologian
Copy link

Is there a method to disable sign-ups?

Thanks,

@Dan6erbond
Copy link
Owner

Yes, as per the README you can disable user sign-ups by going to the users table in PocketBase and going to the authentication settings to disable username/email authentication. This will also hide the sign-up button and page in the frontend.

@Entheologian
Copy link
Author

My bad, I should have been more clear. What I meant to ask is if there is a way to still require the login, but to disable the sign-up link. This way only users I create can login, without anonymous access.

@Dan6erbond
Copy link
Owner

Ah, yes, it would theoretically be possible if you go to the users collection settings, and remove the "create" rule so that it's admins only. But the frontend doesn't have any checks for that, so the sign-up links and page would still show up. I'll open this issue to add an environment variable for SIGNUP_ENABLED.

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

Successfully merging a pull request may close this issue.

2 participants