The README offered open registration, and the register handler still had a branch for a registration_settings mode nothing could set. Now every account after the first needs an invite; the first still needs the setup token from the log. Migration 0110 drops registration_settings and its queries, and backups no longer carry it (an older backup that holds it restores without it). The web form asks for the invite token as required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
397 B
SQL
8 lines
397 B
SQL
CREATE TABLE registration_settings (
|
|
id boolean DEFAULT true NOT NULL PRIMARY KEY,
|
|
mode text DEFAULT 'invite_only'::text NOT NULL,
|
|
CONSTRAINT registration_settings_mode_check CHECK ((mode = ANY (ARRAY['invite_only'::text, 'open'::text]))),
|
|
CONSTRAINT registration_settings_singleton CHECK ((id = true))
|
|
);
|
|
INSERT INTO registration_settings (id, mode) VALUES (true, 'invite_only');
|