0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/integration/model
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
..
base 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
model_accesstoken_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_app-fields_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_app-settings_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_apps_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_invite_spec.js 🎨 Separate invites from user 2016-09-26 11:08:43 +02:00
model_permissions_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_posts_spec.js Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
model_roles_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_settings_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_tags_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_users_spec.js 🎨 more clean code in User Model (#7572) 2016-10-14 18:24:38 +01:00