mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
d4b6390fd6
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 |
||
---|---|---|
.. | ||
handlers | ||
importers | ||
index.js |