mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
remove for loop
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user