mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 03:33:33 +01:00
fix #406
This commit is contained in:
parent
81923a0729
commit
6ad6296dcc
@ -125,6 +125,7 @@ export interface ConfigValue {
|
||||
required: boolean;
|
||||
minimum: number; // in years
|
||||
};
|
||||
disabled: boolean;
|
||||
requireCaptcha: boolean;
|
||||
requireInvite: boolean;
|
||||
allowNewRegistration: boolean;
|
||||
@ -266,6 +267,7 @@ export const DefaultConfigOptions: ConfigValue = {
|
||||
required: false,
|
||||
minimum: 13,
|
||||
},
|
||||
disabled: true,
|
||||
requireInvite: false,
|
||||
requireCaptcha: true,
|
||||
allowNewRegistration: true,
|
||||
|
@ -21,7 +21,6 @@ export const Config = {
|
||||
set: function set(val: Partial<ConfigValue>) {
|
||||
if (!config || !val) return;
|
||||
config = val.merge(config);
|
||||
console.log(config);
|
||||
|
||||
return applyConfig(config);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user