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:
parent
9da7ee115e
commit
dc32c39af3
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user