0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/integration
Katharina Irrgang ca7b5643d5 🎨 more clean code in User Model (#7572)
* 🎨  do not call generateSlug twice for User.setup

* 🎨  call generatePasswordHash onSaving only

- now we can add defaults to User Model
- it was not possible before because add User model did the following:
  1. validate password length
  2. hash password manually
  3. call ghostBookshelf.Model.add and THEN bookshelf defaults fn gets triggered
- call generatePasswordHash in onSaving hook for all use case
- add more tests to user model, juhu
2016-10-14 18:24:38 +01:00
..
api Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
model 🎨 more clean code in User Model (#7572) 2016-10-14 18:24:38 +01:00
export_spec.js feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
import_spec.js feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
migration_spec.js 🔥 remove all migration files (#7498) 2016-10-05 19:57:32 +01:00
update_check_spec.js 🔥 remove postgres support 2016-09-20 15:59:34 +01:00