Skip to content

Commit fbee337

Browse files
committed
Add TOTP two-factor authentication with recovery codes
1 parent b1a9fde commit fbee337

7 files changed

Lines changed: 1218 additions & 3 deletions

File tree

config/migrate.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ const tables = {
2727
{ name: 'email_change_expires', def: 'DATETIME DEFAULT NULL' },
2828
{ name: 'user_agent', def: 'VARCHAR(512) DEFAULT NULL' },
2929
{ name: 'onboarding_done', def: 'TINYINT(1) NOT NULL DEFAULT 0' },
30+
{ name: 'totp_secret', def: 'VARCHAR(255) DEFAULT NULL' },
31+
{ name: 'totp_enabled', def: 'TINYINT(1) NOT NULL DEFAULT 0' },
32+
{ name: 'recovery_codes', def: 'TEXT DEFAULT NULL' },
3033
{ name: 'created_at', def: 'TIMESTAMP DEFAULT CURRENT_TIMESTAMP' },
3134
],
3235
},

0 commit comments

Comments
 (0)