From 5423434b3f4949f357b43027b3a857e1b49b01a4 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 8 Apr 2014 13:48:26 -0400 Subject: [PATCH] closes #1362 --- src/user/create.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/user/create.js b/src/user/create.js index a1df21a8a4..5a58da4a58 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -19,6 +19,9 @@ module.exports = function(User) { userData.email = validator.escape(userData.email); } + var password = userData.password; + delete userData.password; + async.parallel([ function(next) { if (userData.email) { @@ -75,7 +78,6 @@ module.exports = function(User) { var gravatar = User.createGravatarURLFromEmail(userData.email); var timestamp = Date.now(); - var password = userData.password; userData = { 'uid': uid,