send in the entire registration form for userData

v1.18.x
psychobunny 11 years ago
parent d1c2c87510
commit 4bb8762746

@ -84,11 +84,13 @@
return res.send(403); return res.send(403);
} }
var userData = { var userData = {};
username: req.body.username,
password: req.body.password, for (var key in req.body) {
email: req.body.email if (req.body.hasOwnProperty(key)) {
}; userData[key] = req.body[key];
}
}
plugins.fireHook('filter:register.check', req, res, userData, function(err, req, res, userData) { plugins.fireHook('filter:register.check', req, res, userData, function(err, req, res, userData) {
if (err) { if (err) {

Loading…
Cancel
Save