#Filter hook to update pass and get login doesnt work properly.
1 messages · Page 1 of 1 (latest)
Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:
- Adding an explanation of exactly what you're trying to achieve.
- Adding any and all related code or previous attempts.
- Describing the exact issue or error you are facing.
- Posting any screenshots if applicable.
- Reading through https://stackoverflow.com/help/how-to-ask.
When you're done with this thread, please close it. Thanks! ✨
(If you have a support agreement and need help, please contact the core team via email.)
Are you awaiting the update call in makeHttpPostRequest?
yes
Are you logging into an external system using a http request in this hook? if not you should probably stick with the services that talk directly to the database over making a http request
yes, I am migrating users from directus 8 to 10, I make a request to directus 8 with the password entered in directus 10 to do a mach and update the password.
Ah, then where is this userDirectusTen[0].id coming from? should that not be either the email from the original login or the email returned from directus 8?
Hmmm i kinda want to close this duplicate in favor of the one in help-extensions as that seems like the most appropriate place 🤔 however that got no interaction on it
So i removed the other one with the question here to please not re-post the same question in multiple channels
I delete it, from const userDirectusTen = await itemsService.readByQuery({ filter: { email: { _eq: input.email } } }) , get the array of the user [id:]
ah ok