mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #2145
This commit is contained in:
@@ -152,6 +152,9 @@ 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');
|
||||
}
|
||||
|
||||
var data = {},
|
||||
login_strategies = auth.get_login_strategies(),
|
||||
|
||||
Reference in New Issue
Block a user