mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 09:19:55 +01:00
display 404 page if registration is disabled
This commit is contained in:
@@ -90,8 +90,8 @@ Controllers.login = function(req, res, next) {
|
||||
};
|
||||
|
||||
Controllers.register = function(req, res, next) {
|
||||
if(meta.config.allowRegistration !== undefined && parseInt(meta.config.allowRegistration, 10) === 0) {
|
||||
return res.redirect(nconf.get('relative_path') + '/403');
|
||||
if (parseInt(meta.config.allowRegistration, 10) === 0) {
|
||||
return helpers.notFound(req, res);
|
||||
}
|
||||
|
||||
var data = {},
|
||||
|
||||
Reference in New Issue
Block a user