How to disable public sign-up? #112
-
Thanks for this promising open source project! I wonder: Is it possible to configure snoopForms to have public sign-up disabled? And does it instead allow existing users to invite new users? Or how would I control user account creation on a self-hosted instance? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@salim-b currently it's not possible but we are working on it. the easiest fix we can build within the next days would be to disable signups via an environment variable. But then you need to rebuild the code in order to disable signup again, but I think it's a start and then we can build the invite feature and default user. |
Beta Was this translation helpful? Give feedback.
-
@salim-b We now added an option to disable signup via environment variable ( a4c571f ). You can set In the future we will also build an option to create an initial user on snoopForms setup and an option to invite users when signup is disabled but this is a fast workaround that enables you to secure your instance. |
Beta Was this translation helpful? Give feedback.
@salim-b We now added an option to disable signup via environment variable ( a4c571f ). You can set
NEXT_PUBLIC_SIGNUP_DISABLED=1
to disable the signup functionality. You need to rebuild the snoopForms code after you changed the environment variable for the change to take effect.In the future we will also build an option to create an initial user on snoopForms setup and an option to invite users when signup is disabled but this is a fast workaround that enables you to secure your instance.