summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 22:04:19 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 22:04:19 +1000
commiteb7f2c7b72f545b99949e4290bc38cb448903141 (patch)
treef1e20ecf6efca0d4ad54649746dd2d9170a50fb3 /util/src
parentAdd node-2fa to package.json (diff)
downloadserver-eb7f2c7b72f545b99949e4290bc38cb448903141.tar.xz
Add config `security_twoFactor_generateBackupCodes` to control backup code generation
Diffstat (limited to 'util/src')
-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,