feat(accounts): locked registration, for staging
A third registration setting, locked: every new account waits for a moderator's approval, Discord sign-ins too, and only approved accounts sign in to T5DE's other sites. Today staging's closed registration still lets any Discord account in as a basic account, straight into Music's staging (and soon payments' staging, with PayPal's sandbox). The gate is the OAuth provider's postLogin check: an unapproved account is sent to the website's waiting page and no code is issued, on every authorize request and /oauth2/continue. Open and closed behave as before, so prod's Music sign-ins don't change.
This commit is contained in:
1 parent
02e8269d4d
commit
23cae691a9
11 files changed
+111
-22
No files matched your search
@@ -84,6 +84,10 @@ The cost: Music's sign-in depends on the hub being up, and the hub gains a secon
|
||||
Stored as a column on `user` (`kind: basic | member`); permissions treat basic accounts like unapproved ones on the
|
||||
hub's own routes.
|
||||
|
||||
Staging is locked down (**Decided**): its registration is `locked`, so every new account, Discord ones too, waits for
|
||||
a moderator's approval, and only approved accounts sign in to other sites (Music's and payments' staging). Prod
|
||||
stays as above.
|
||||
|
||||
Email (**Decided**):
|
||||
|
||||
- Better Auth needs one, so a basic account takes Discord's, and only when Discord says it's verified. A Discord
|
||||
|
||||
Reference in new issue
Block a user