blob: 06cbfdec6418d83f4a269c750e779e52d3bf47c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { hooks } from '@feathersjs/authentication-local';
const hashPassword = hooks.hashPassword('password');
export default {
before: {
create: [hashPassword],
patch: [hashPassword],
update: [hashPassword]
}
};
|