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