summary refs log tree commit diff
path: root/src/util/Constants.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 09:55:06 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 09:55:06 +0100
commit14ba698369402ead68f8ad3efdb8ef5b1627dce2 (patch)
treec668b5d54b6744ef89ab0df11c45e0ea778eb607 /src/util/Constants.ts
parent:art: typo (diff)
parentinvite interface (diff)
downloadserver-14ba698369402ead68f8ad3efdb8ef5b1627dce2.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-server
Diffstat (limited to 'src/util/Constants.ts')
-rw-r--r--src/util/Constants.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/util/Constants.ts b/src/util/Constants.ts

index 35d11615..ec508236 100644 --- a/src/util/Constants.ts +++ b/src/util/Constants.ts
@@ -71,6 +71,13 @@ export interface DefaultOptions { requireInvite: boolean; allowNewRegistration: boolean; allowMultipleAccounts: boolean; + password: { + minLength: number; + minNumbers: number; + minUpperCase: number; + minSymbols: number; + blockInsecureCommonPasswords: boolean; // TODO: efficiently save password blocklist in database + }; }; } @@ -123,7 +130,7 @@ export const DefaultOptions: DefaultOptions = { required: true, allowlist: false, blocklist: true, - domains: [], // TODO: efficicently save domain blocklist in database + domains: [], // TODO: efficiently save domain blocklist in database // domains: fs.readFileSync(__dirname + "/blockedEmailDomains.txt", { encoding: "utf8" }).split("\n"), }, dateOfBirth: { @@ -134,6 +141,13 @@ export const DefaultOptions: DefaultOptions = { requireCaptcha: true, allowNewRegistration: true, allowMultipleAccounts: true, + password: { + minLength: 8, + minNumbers: 2, + minUpperCase: 2, + minSymbols: 0, + blockInsecureCommonPasswords: false, + }, }, };