mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
dont send undefined for tos
This commit is contained in:
@@ -118,7 +118,7 @@ Controllers.register = function(req, res, next) {
|
||||
}
|
||||
},
|
||||
function(next) {
|
||||
plugins.fireHook('filter:parse.post', {postData: {content: meta.config.termsOfUse}}, next);
|
||||
plugins.fireHook('filter:parse.post', {postData: {content: meta.config.termsOfUse || ''}}, next);
|
||||
},
|
||||
function(tos, next) {
|
||||
var loginStrategies = require('../routes/authentication').getLoginStrategies();
|
||||
|
||||
Reference in New Issue
Block a user