diff --git a/app/Models/User.js b/app/Models/User.js index 53ec9a8..190c359 100644 --- a/app/Models/User.js +++ b/app/Models/User.js @@ -13,7 +13,7 @@ class User extends Model { * Look at `app/Models/Hooks/User.js` file to * check the hashPassword method */ - this.addHook('beforeSave', 'User.hashPassword') + this.addHook('beforeCreate', 'User.hashPassword') } /**