From b2bc1d4555d3282fbfb7ae33e292349fad5a98b6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 6 Mar 2014 15:37:13 -0500 Subject: [PATCH] setting password to null in getUserData, because Object.delete is bad? :P (thanks @barisusakli) --- src/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.js b/src/user.js index 9d81f2ea71..6b425fd401 100644 --- a/src/user.js +++ b/src/user.js @@ -187,7 +187,7 @@ var bcrypt = require('bcryptjs'), if (data) { if (data.password) { - delete data.password; + data.password = null; data.hasPassword = true; } else { data.hasPassword = false;