Update the internal prefix

This commit is contained in:
Raymond Feng 2013-08-30 16:52:27 -07:00
parent e41e0a8653
commit 8784eb52cb
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ User.setup = function () {
UserModel.setter.password = function (plain) { UserModel.setter.password = function (plain) {
var salt = bcrypt.genSaltSync(this.constructor.settings.saltWorkFactor || SALT_WORK_FACTOR); 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( loopback.remoteMethod(