feat: 2FAのバックアップコードの実装 (#121)
This commit is contained in:
parent
99232ed417
commit
2b941ae648
34 changed files with 91 additions and 32 deletions
|
@ -0,0 +1,11 @@
|
|||
export class User2faBackupCodes1690569881926 {
|
||||
name = 'User2faBackupCodes1690569881926'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ADD "twoFactorBackupSecret" character varying array`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "twoFactorBackupSecret"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue