From 76c16c0383f800e728e4216e09336756a3d90c07 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 8 Nov 2014 14:57:04 -0500 Subject: [PATCH] filter:register.check change #1527 --- src/routes/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index c4b70ee712..fc5444e1cd 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -113,7 +113,7 @@ } } - plugins.fireHook('filter:register.check', req, res, userData, function(err, req, res, userData) { + plugins.fireHook('filter:register.check', {req: req, res: res, userData: userData}, function(err, data) { if (err) { return res.redirect(nconf.get('relative_path') + '/register' + (err.message ? '?error=' + err.message : '')); }