From 8d6a8dc928815b1ca95cb911237c2a566d301618 Mon Sep 17 00:00:00 2001 From: Aziz Khoury Date: Mon, 19 May 2014 12:29:52 -0400 Subject: [PATCH] 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 --- src/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index 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)); }