mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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 |
||
---|---|---|
.. | ||
db | ||
export | ||
importer | ||
meta | ||
migrations | ||
schema | ||
slack | ||
validation | ||
xml | ||
timezones.json |