mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 06:29:23 +02:00
added two factor to login endpoint
This commit is contained in:
parent
023ec86107
commit
905cfaea34
5 changed files with 308 additions and 6 deletions
|
@ -71,6 +71,10 @@ export const users = sqliteTable("user", {
|
|||
id: text("id").primaryKey(), // has to be id not userId for lucia
|
||||
email: text("email").notNull().unique(),
|
||||
passwordHash: text("passwordHash").notNull(),
|
||||
twoFactorEnabled: integer("twoFactorEnabled", { mode: "boolean" })
|
||||
.notNull()
|
||||
.default(false),
|
||||
twoFactorSecret: text("twoFactorSecret"),
|
||||
});
|
||||
|
||||
// Sessions table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue