Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

hash-password hook will skip users if they are missing password #58

Closed
axmad22 opened this issue Mar 13, 2018 · 1 comment
Closed

hash-password hook will skip users if they are missing password #58

axmad22 opened this issue Mar 13, 2018 · 1 comment

Comments

@axmad22
Copy link

axmad22 commented Mar 13, 2018

When adding this hook to the users service in the before method and I send multiple Created users with some users without passwords, it will remove them from the context and will only save users with password.

Should it not just skip the hashing for users without password instead and then forward All users to the next hook.

@daffl
Copy link
Member

daffl commented Mar 25, 2018

You are absolutely right, I don't think there was a reason for this behaviour. Fixed in v1.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants