salix/loopback/server/boot/set-password.js

8 lines
262 B
JavaScript

// SET IN VN_USER
module.exports = async function(app) {
const _setPassword = app.models.VnUser.setPassword;
app.models.VnUser.setPassword = function(newPassword, options, cb) {
return _setPassword.call(this, newPassword, options, cb);
};
};