-
-
Notifications
You must be signed in to change notification settings - Fork 518
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 an enviroment option to disable user self registration #441
Conversation
This will add a step to disable user sign up , when the env is set to true : DISABLE_SIGNUP=true , the default is false
Hi, I want this feature too. |
hello , you can add a new PR , since this PR is not approved yet by the teable team , your approach does the same goal so go on , Thanks |
We released the basic functionality of the Admin panel, You can now disable user registration and create new Spaces here.
UPDATE "public"."users" SET "is_admin" = 't' WHERE "email" = '[email protected]';
|
Step-by-step on how to do this for non-advanced users on an already running docker instance? 🙏 |
@mini-mini-oss POSTGRES_DB=_db_name
POSTGRES_USER=_db_user_name_
POSTGRES_PASSWORD=_db_pass_ In the following commands, replace the actual value Find the database container id docker ps Entry container (replace with the container_id of the previous step docker exec -it _container_id_ bash Login database (replace with the db_user, db_name, press Enter and you may be asked to enter your password) psql -U _db_user_ -d _db_name_ Enter SQL to update your administrator account (Be sure to replace email with your registered account) UPDATE "public"."users" SET "is_admin" = 't' WHERE "email" = '[email protected]'; If successful, it will be displayed UPDATE 1 |
Great, thank you so much! |
This will add environment option to disable user self registration , this is a simple method that can be triggered after the first run of the application and the owner or admin register him self and then can make sure that only user with valid invitation link is able to sign in , or he can provide another instance that has the user registration allowed.