From dc32c39af30defecf48a253886e4a5e27b83bfe8 Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Sat, 22 May 2021 20:14:48 -0500 Subject: [PATCH] Scripts: Generator should use necessary instead of required --- scripts/config_generator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/config_generator.js b/scripts/config_generator.js index 270dd8da..5b5c52d4 100644 --- a/scripts/config_generator.js +++ b/scripts/config_generator.js @@ -44,7 +44,7 @@ const defaultConfig = { count: 1000, timespan: 1000 * 60 * 10, }, - routes: "", + routes: {}, }, }, security: { @@ -64,14 +64,14 @@ const defaultConfig = { }, register: { email: { - required: true, + necessary: true, allowlist: false, blocklist: true, domains: [], // TODO: efficiently save domain blocklist in database // domains: fs.readFileSync(__dirname + "/blockedEmailDomains.txt", { encoding: "utf8" }).split("\n"), }, dateOfBirth: { - required: true, + necessary: true, minimum: 13, }, requireInvite: false,