mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Implement password resets
This commit is contained in:
parent
1365987a1c
commit
24288c95b5
11 changed files with 1998 additions and 19 deletions
2
drizzle/0023_lazy_wolfsbane.sql
Normal file
2
drizzle/0023_lazy_wolfsbane.sql
Normal 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;
|
||||
1833
drizzle/meta/0023_snapshot.json
Normal file
1833
drizzle/meta/0023_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue