0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core
Aileen Nowak d4b6390fd6 Improved importer logic for password in users (#9161)
refs #9150

- move data manipulation for importing users from `importers/data/users` to `model/user` for more consistency (see behaviour of post imports)
- changed importing logic in `onSaving` fn for user model:
   - when importing, we set the password to a random uid and don't validate, just hash it and lock the user
   - when importing with `importPersistUser` we check if the password is a bcrypt hash already and fall back to normal behaviour if not (set random password, lock user, and hash password)
   - don't run validations when importing
2017-10-19 10:43:52 +01:00
..
client@5153b2ab64 Updated Ghost-Admin to 1.14.1 2017-10-17 16:14:32 +01:00
server Improved importer logic for password in users (#9161) 2017-10-19 10:43:52 +01:00
test support prev/next filtering by author (#9149) 2017-10-18 18:12:20 +01:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00