-
Notifications
You must be signed in to change notification settings - Fork 13
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 account creation after initial setup #27
Comments
Hacky solution: Add a trigger to the database to prevent In @@ -25,6 +25,8 @@
- MYSQL_ROOT_HOST=%
expose:
- "3306"
+ ports:
+ - "3307:3306" Run Connect with use fxa;
DELIMITER //
CREATE TRIGGER block_new_users
BEFORE INSERT ON accounts
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'No new users';
END;
//
DELIMITER ;
Keep Verify only expected users are in your table. select email from accounts; I don't think there is a way to disable this temporarily. You just have to drop the trigger and add again when creating new users. |
Some solutions (no tested)
|
Thanks for the reply, jackyzy823. And thank you for this awesome work, you made this process easy! I actually think I prefer my hack to (1). The benefit of adding the database trigger is that it protects the database from filing up with unverified accounts. I don't really understand (2). Will try to figure that one out after some sleep. |
Is there an easy way to block account creation after the initial setup?
I vaguely remember reading about a solution for sync-server to limit the number of users but I can't find anything for the auth-server.
Edit - looks like this is going to be rough. There's a lot of clues to suggest it's not possible.
The text was updated successfully, but these errors were encountered: