1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 18:21:36 +02:00

Scripts: Generator should use necessary instead of required

This commit is contained in:
Diego Magdaleno 2021-05-22 20:14:48 -05:00
parent 9da7ee115e
commit dc32c39af3

View File

@ -44,7 +44,7 @@ const defaultConfig = {
count: 1000, count: 1000,
timespan: 1000 * 60 * 10, timespan: 1000 * 60 * 10,
}, },
routes: "", routes: {},
}, },
}, },
security: { security: {
@ -64,14 +64,14 @@ const defaultConfig = {
}, },
register: { register: {
email: { email: {
required: true, necessary: true,
allowlist: false, allowlist: false,
blocklist: true, blocklist: true,
domains: [], // TODO: efficiently save domain blocklist in database domains: [], // TODO: efficiently save domain blocklist in database
// domains: fs.readFileSync(__dirname + "/blockedEmailDomains.txt", { encoding: "utf8" }).split("\n"), // domains: fs.readFileSync(__dirname + "/blockedEmailDomains.txt", { encoding: "utf8" }).split("\n"),
}, },
dateOfBirth: { dateOfBirth: {
required: true, necessary: true,
minimum: 13, minimum: 13,
}, },
requireInvite: false, requireInvite: false,