Commit Graph

7 Commits

Author SHA1 Message Date
Romain Lanz
0b79d48d21
fix(User): use beforeSave hook 2018-06-10 22:33:30 +02:00
Roman
ba18e2d712 feat(hook): Verify status before hashing
To prevent double-hashing on udpate
2018-06-05 17:53:20 +05:30
Romain Lanz
3735f11f91 chore(hook): move beforeCreate hook to user model (#16) 2018-06-05 17:53:20 +05:30
Michael Raypold
ed144ae039 doc(user-model): fix typo in addHook 2018-02-09 17:05:39 +05:30
Harminder Virk
eb9afd9377 fix(hooks): use beforeCreate over beforeSave 2018-02-09 17:05:39 +05:30
Stephen Afam-Osemene
c19c0d0880 fix(hook): use beforeSave over beforeCreate
Changed the hook from `beforeCreate` to `beforeSave`
With `beforeCreate` the password will not be hashed if it is changed later
2017-10-24 11:48:18 +05:30
Harminder Virk
991657c76b feat(*) initial commit 2017-08-20 22:39:25 +05:30