Node.js based forum software built for the modern web
filter:register.build now returns what it was passed, in order. fixes #1540, we seriously need to consider standarizing the hooks arguments, maybe some ideas here #1527
Aziz Khoury8d6a8dc92881
diff --git a/src/controllers/index.js b/src/controllers/index.jsindex 528472afb7..c26dd6c3b8 100644--- a/src/controllers/index.js+++ b/src/controllers/index.js@@ -207,7 +207,7 @@ Controllers.register = function(req, res, next) {data.minimumPasswordLength = meta.config.minimumPasswordLength;data.termsOfUse = meta.config.termsOfUse;- plugins.fireHook('filter:register.build', req, res, data, function(err, data) {+ plugins.fireHook('filter:register.build', req, res, data, function(err, req, res, data) {if (err && process.env === 'development') {winston.warn(JSON.stringify(err));}