From e63f127a5671a06dbda10668714e68cc6b00d3e8 Mon Sep 17 00:00:00 2001 From: xnacly Date: Wed, 3 Feb 2021 19:54:12 +0100 Subject: added blockInsecureCommonPasswords config flag --- src/util/Constants.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/util/Constants.ts') 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, }, }, }; -- cgit 1.5.1