feat(api): Implement password resets

This commit is contained in:
Jesse Wierzbinski 2024-05-16 22:27:41 -10:00
parent 1365987a1c
commit 24288c95b5
No known key found for this signature in database
11 changed files with 1998 additions and 19 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE "Users" ADD COLUMN "email_verification_token" text;--> statement-breakpoint
ALTER TABLE "Users" ADD COLUMN "password_reset_token" text;

File diff suppressed because it is too large Load diff

View file

@ -162,6 +162,13 @@
"when": 1715563390152,
"tag": "0022_curly_the_call",
"breakpoints": true
},
{
"idx": 23,
"version": "6",
"when": 1715932436792,
"tag": "0023_lazy_wolfsbane",
"breakpoints": true
}
]
}

View file

@ -352,6 +352,8 @@ export const Users = pgTable(
email: text("email"),
note: text("note").default("").notNull(),
isAdmin: boolean("is_admin").default(false).notNull(),
emailVerificationToken: text("email_verification_token"),
passwordResetToken: text("password_reset_token"),
fields: jsonb("fields").notNull().default("[]").$type<
{
key: typeof EntityValidator.$ContentFormat;