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,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user