Answers for "loopback user password setter overwrite"

1

loopback user password setter overwrite

UserModel.setter.password = function(plain) {
	//var salt = bcrypt.genSaltSync(this.constructor.settings.saltWorkFactor || SALT_WORK_FACTOR);
	//this.$password = bcrypt.hashSync(plain, salt);
	this.$password = plain;
};
Posted by: Guest on November-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language