summary refs log tree commit diff
path: root/src/util/Constants.ts
diff options
context:
space:
mode:
authorxnacly <matteogropp@gmail.com>2021-02-03 19:54:12 +0100
committerxnacly <matteogropp@gmail.com>2021-02-03 19:54:12 +0100
commite63f127a5671a06dbda10668714e68cc6b00d3e8 (patch)
tree8742cd32dbb2785891876234e1360d7d34a78c7b /src/util/Constants.ts
parentadded password list (diff)
downloadserver-e63f127a5671a06dbda10668714e68cc6b00d3e8.tar.xz
added blockInsecureCommonPasswords config flag
Diffstat (limited to 'src/util/Constants.ts')
-rw-r--r--src/util/Constants.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/util/Constants.ts b/src/util/Constants.ts

index 84012071..ec508236 100644 --- a/src/util/Constants.ts +++ b/src/util/Constants.ts
@@ -72,10 +72,11 @@ export interface DefaultOptions { allowNewRegistration: boolean; allowMultipleAccounts: boolean; password: { - pwMinLength: number; - pwMinNumbers: number; - pwMinUpperCase: number; - pwMinSymbols: number; + minLength: number; + minNumbers: number; + minUpperCase: number; + minSymbols: number; + blockInsecureCommonPasswords: boolean; // TODO: efficiently save password blocklist in database }; }; } @@ -141,10 +142,11 @@ export const DefaultOptions: DefaultOptions = { allowNewRegistration: true, allowMultipleAccounts: true, password: { - pwMinLength: 8, - pwMinNumbers: 2, - pwMinUpperCase: 2, - pwMinSymbols: 0, + minLength: 8, + minNumbers: 2, + minUpperCase: 2, + minSymbols: 0, + blockInsecureCommonPasswords: false, }, }, };