setting password to null in getUserData, because Object.delete is bad? :P (thanks @barisusakli)

v1.18.x
Julian Lam 11 years ago
parent e9e53ad95e
commit b2bc1d4555

@ -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;

Loading…
Cancel
Save