From 8784eb52cbb155ef6fa18f7f606cf1b2a16b37e0 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 30 Aug 2013 16:52:27 -0700 Subject: [PATCH] Update the internal prefix --- lib/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/user.js b/lib/models/user.js index f3bd91f2..500f0cc0 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -257,7 +257,7 @@ User.setup = function () { UserModel.setter.password = function (plain) { var salt = bcrypt.genSaltSync(this.constructor.settings.saltWorkFactor || SALT_WORK_FACTOR); - this._password = bcrypt.hashSync(plain, salt); + this.$password = bcrypt.hashSync(plain, salt); } loopback.remoteMethod(