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

v1.18.x
Aziz Khoury 11 years ago
parent 5cf9b0a3bd
commit 8d6a8dc928

@ -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));
}

Loading…
Cancel
Save