v1.18.x
psychobunny 11 years ago
parent ee44128c8c
commit 5423434b3f

@ -19,6 +19,9 @@ module.exports = function(User) {
userData.email = validator.escape(userData.email); userData.email = validator.escape(userData.email);
} }
var password = userData.password;
delete userData.password;
async.parallel([ async.parallel([
function(next) { function(next) {
if (userData.email) { if (userData.email) {
@ -75,7 +78,6 @@ module.exports = function(User) {
var gravatar = User.createGravatarURLFromEmail(userData.email); var gravatar = User.createGravatarURLFromEmail(userData.email);
var timestamp = Date.now(); var timestamp = Date.now();
var password = userData.password;
userData = { userData = {
'uid': uid, 'uid': uid,

Loading…
Cancel
Save