Fix of backend validation problems. #8

Merged
Mathis merged 5 commits from dev into prod 2026-01-14 21:13:06 +01:00
4 changed files with 1649 additions and 1 deletions
Showing only changes of commit a4ce48a91c - Show all commits

View File

@@ -0,0 +1 @@
ALTER TABLE "users" ALTER COLUMN "password_hash" SET DATA TYPE varchar(100);

File diff suppressed because it is too large Load Diff

View File

@@ -36,6 +36,13 @@
"when": 1768417827439, "when": 1768417827439,
"tag": "0004_cheerful_dakota_north", "tag": "0004_cheerful_dakota_north",
"breakpoints": true "breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1768420201679,
"tag": "0005_perpetual_silverclaw",
"breakpoints": true
} }
] ]
} }

View File

@@ -29,7 +29,7 @@ export const users = pgTable(
displayName: varchar("display_name", { length: 32 }), displayName: varchar("display_name", { length: 32 }),
username: varchar("username", { length: 32 }).notNull().unique(), username: varchar("username", { length: 32 }).notNull().unique(),
passwordHash: varchar("password_hash", { length: 95 }).notNull(), passwordHash: varchar("password_hash", { length: 100 }).notNull(),
// Sécurité // Sécurité
twoFactorSecret: pgpEncrypted("two_factor_secret"), twoFactorSecret: pgpEncrypted("two_factor_secret"),