Node.js based forum software built for the modern web
remove for loop
Barış Soner Uşaklı9625f896656d
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex cc4ef41aab..3db8b26472 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -26,13 +26,7 @@ authenticationController.register = function (req, res) {return res.sendStatus(403);}- var userData = {};-- for (var key in req.body) {- if (req.body.hasOwnProperty(key)) {- userData[key] = req.body[key];- }- }+ var userData = req.body;async.waterfall([function (next) {