remove for loop

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 14da37f3b1
commit 9625f89665

@ -26,13 +26,7 @@ authenticationController.register = function (req, res) {
return res.sendStatus(403); return res.sendStatus(403);
} }
var userData = {}; var userData = req.body;
for (var key in req.body) {
if (req.body.hasOwnProperty(key)) {
userData[key] = req.body[key];
}
}
async.waterfall([ async.waterfall([
function (next) { function (next) {

Loading…
Cancel
Save