From a5eff415f03efc4e6b9f987c5c3b02ed5612db1e Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sat, 18 Jan 2014 01:56:55 -0500 Subject: [PATCH] POST signup controller updated username to email field during new User creation. --- controllers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/user.js b/controllers/user.js index a75201f7f0..d42b45a796 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -93,7 +93,7 @@ exports.postSignup = function(req, res, next) { } var user = new User({ - username: req.body.username, + email: req.body.email, password: req.body.password });