Discord sign-in and basic accounts
Discord sign-in makes a basic account (Discord's verified email, no username or password) for T5DE's other sites; it finishes setting up with a username and password to use the hub. Implicit linking by email is off; members link Discord from their account page. Better Auth 1.7.26.
This commit is contained in:
1 parent
a66a3a4b6a
commit
f0a9661f8e
24 files changed
+5214
-173
No files matched your search
@@ -0,0 +1 @@
|
||||
ALTER TABLE "user" ADD COLUMN "kind" text DEFAULT 'member' NOT NULL;
|
||||
File diff suppressed because it is too large.
Load diff
@@ -148,6 +148,13 @@
|
||||
"when": 1794150630963,
|
||||
"tag": "0020_importer_signed_in",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 21,
|
||||
"version": "7",
|
||||
"when": 1795079107938,
|
||||
"tag": "0021_account_kind",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
// The hub's tables: Better Auth's (people, sessions, passwords, signing keys, device sign-ins) and the hub's own
|
||||
// (linked IMVU accounts, link codes, the audit log). Better Auth's are as its CLI generates them for the plugins
|
||||
// used (username, admin, device-authorization, bearer, jwt), with the hub's linkCap added to user.
|
||||
// The hub's tables: Better Auth's (people, sessions, passwords and Discord sign-ins, signing keys, device sign-ins)
|
||||
// and the hub's own (linked IMVU accounts, link codes, the audit log). Better Auth's are as its CLI generates them for
|
||||
// the plugins used (username, admin, device-authorization, bearer, jwt), with the hub's linkCap, approved and kind
|
||||
// added to user.
|
||||
import { sql } from "drizzle-orm";
|
||||
import {
|
||||
bigint,
|
||||
@@ -45,6 +46,10 @@ export const user = pgTable(
|
||||
linkCap: integer("link_cap").notNull().default(10),
|
||||
// False while a new account waits for a moderator's approval (registration closed); it can only sign in.
|
||||
approved: boolean("approved").notNull().default(true),
|
||||
// member: signed up with a username and password. basic: made by signing in with Discord (from Music or the
|
||||
// hub), with no username or password; it can use T5DE's other sites but none of the hub's features until it
|
||||
// finishes setting up (a username and password), when it becomes a member (docs/music.md, Accounts).
|
||||
kind: text("kind").notNull().default("member"),
|
||||
// Two-factor sign-in (an authenticator app), required for sensitive permissions (docs/console.md).
|
||||
twoFactorEnabled: boolean("two_factor_enabled").notNull().default(false),
|
||||
// An unclaimed creator (docs/imports.md): a placeholder without credentials for an IMVU creator whose consent an
|
||||
|
||||
Reference in new issue
Block a user