summary refs log tree commit diff
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 20:14:48 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-22 20:14:48 -0500
commitdc32c39af30defecf48a253886e4a5e27b83bfe8 (patch)
treecea89d61a07a65da88b36494ed052ca840118989
parentScripts: Be able to generate config (diff)
downloadserver-dc32c39af30defecf48a253886e4a5e27b83bfe8.tar.xz
Scripts: Generator should use necessary instead of required
-rw-r--r--scripts/config_generator.js6
1 files 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,