Node.js based forum software built for the modern web
changing 'filter:register.check' hook signature to provide req, res and data
Aziz Khourybab88893f195
diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex b203952b99..c008dd2b80 100644--- a/src/routes/authentication.js+++ b/src/routes/authentication.js@@ -73,13 +73,12 @@var userData = {username: req.body.username,password: req.body.password,- email: req.body.email,- ip: req.ip+ email: req.body.email};- plugins.fireHook('filter:register.check', userData, function(err, userData) {+ plugins.fireHook('filter:register.check', req, res, userData, function(err, userData) {if (err) {- return res.redirect(nconf.get('relative_path') + '/register');+ return res.redirect(nconf.get('relative_path') + '/register' + (err.message ? '?error=' + err.message : ''));}user.create(userData, function(err, uid) {