Update the internal prefix
This commit is contained in:
parent
e41e0a8653
commit
8784eb52cb
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue