mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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 |
||
---|---|---|
.. | ||
client@5153b2ab64 | ||
server | ||
test | ||
index.js |