summary refs log tree commit diff
path: root/util/src/entities/Config.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-06 02:41:00 +0200
committerGitHub <noreply@github.com>2022-08-06 02:41:00 +0200
commitf291143969d0c755acbf8bf25cd3bfff63c8762c (patch)
treeb9cf427d3c173cbe4029e5230eda6acc4fd61cf0 /util/src/entities/Config.ts
parentMerge pull request #804 from MaddyUnderStars/feat/notesTable (diff)
parentMerge branch 'master' into 2fa (diff)
downloadserver-f291143969d0c755acbf8bf25cd3bfff63c8762c.tar.xz
Merge pull request #800 from MaddyUnderStars/2fa
2 Factor Authentication (TOTP)
Diffstat (limited to '')
-rw-r--r--util/src/entities/Config.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts

index 3756d686..c84ea4aa 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts
@@ -121,6 +121,9 @@ export interface ConfigValue { secret: string | null; }; ipdataApiKey: string | null; + twoFactor: { + generateBackupCodes: boolean; + }; }; login: { requireCaptcha: boolean; @@ -312,6 +315,9 @@ export const DefaultConfigOptions: ConfigValue = { secret: null, }, ipdataApiKey: "eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9", + twoFactor: { + generateBackupCodes: true, + }, }, login: { requireCaptcha: false,