From 9625f896656d522a09c5a27208447dcc74ffb05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 23 May 2017 15:53:29 -0400 Subject: [PATCH] remove for loop --- src/controllers/authentication.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 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) {