diff options
Diffstat (limited to 'services/users/users.hooks.ts')
-rw-r--r-- | services/users/users.hooks.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/users/users.hooks.ts b/services/users/users.hooks.ts index 06cbfde..fc17ed7 100644 --- a/services/users/users.hooks.ts +++ b/services/users/users.hooks.ts @@ -1,8 +1,12 @@ import { hooks } from '@feathersjs/authentication-local'; const hashPassword = hooks.hashPassword('password'); +const protectPassword = hooks.protect('password'); export default { + after: { + all: [protectPassword] + }, before: { create: [hashPassword], patch: [hashPassword], |