@@ -4,7 +4,8 @@
"domain": "http://localhost",
"frontendPort": 80,
"serverDomain": "http://localhost:8080",
- "serverPort": 8080,
+ "serverPort": 8080,
+ "registrationDisabled": true,
"isDocker": true,
"fancyConsole": true,
"apis": {
@@ -322,6 +322,12 @@ module.exports = {
async.waterfall(
[
+ (next) => {
+ if (config.get("registrationDisabled") === true)
+ return next("Registration is not allowed at this time.");
+ return next();
+ },
+
// verify the request with google recaptcha
(next) => {
if (!db.passwordValid(password))