You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
const{ hooks }=require('feathers-authentication');// Your custom hashPassword hookexports.myHashPassword=function(options){consthashPassword=hooks.hashPassword(options);// Add any custom optionsreturnfunction(hook){if(hook.data.password!==undefined){// Call the hashPassword hookreturnhashPassword.call(this,hook);}};}
This check https://github.com/feathersjs/feathers-authentication/blob/master/src/hooks/hash-password.js#L36-L39 is preventing patch methods if password is not defined in the data.
The text was updated successfully, but these errors were encountered: