From 51562e7cfd933e844e473984d24460cd9fdec600 Mon Sep 17 00:00:00 2001 From: fatchan Date: Thu, 14 May 2020 16:28:52 +1000 Subject: [PATCH] Update example config references #135 --- configs/main.js.example | 4 ++-- controllers/forms/register.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/main.js.example b/configs/main.js.example index 57c61e52..5ab02c0a 100644 --- a/configs/main.js.example +++ b/configs/main.js.example @@ -90,9 +90,9 @@ module.exports = { enableWebring: false, //let all users create new boards - enableUserBoards: true, + enableUserBoardCreation: true, //let all users register new accounts - enableAccountCreation: true, + enableUserAccountCreation: true, /* extension for thumbnails. this value is used UNLESS the image contains transparency, in which case png is used. */ diff --git a/controllers/forms/register.js b/controllers/forms/register.js index 05bff495..a958297b 100644 --- a/controllers/forms/register.js +++ b/controllers/forms/register.js @@ -8,7 +8,7 @@ const alphaNumericRegex = require(__dirname+'/../../helpers/checks/alphanumregex module.exports = async (req, res, next) => { if (enableUserAccountCreation === false && res.locals.permLevel > 1) { - return res.status(400).render('message', { + return dynamicResponse(req, res, 400, 'message', { 'title': 'Bad request', 'error': 'Acount creation is disabled', 'redirect': '/register.html'