Unverify user email
In my mobile app , I initialize a user only with his email.
Then I ask him to verify his email => zitadel api call
Then to set up his phone number => zitadel api call
Then to verify his phone number => zitadel api call
Then to set his password => zitadel api call
But if the user stop his account creation before setting his password, I need to "clear" his zitadel account and just keep his email as unverified.
I try to use the update user endpoint, but there is nothing happening with it.
So I'm doing 3 calls
- Delete phone number (v2)
- Change user email (v2) with a fake email (with the code returned to avoid sending email)
- Change again user email (v2) with his email (without the code to make sure the user receive it)
The bug :
The thing is that by calling two times the change user email endpoint, I don't receive any email with the code.
If I wait 3-4 seconds between both change email user endpoint call I receive the email.
When both calls are done quickly one after the other, no email sent
Then I ask him to verify his email => zitadel api call
Then to set up his phone number => zitadel api call
Then to verify his phone number => zitadel api call
Then to set his password => zitadel api call
But if the user stop his account creation before setting his password, I need to "clear" his zitadel account and just keep his email as unverified.
I try to use the update user endpoint, but there is nothing happening with it.
So I'm doing 3 calls
- Delete phone number (v2)
- Change user email (v2) with a fake email (with the code returned to avoid sending email)
- Change again user email (v2) with his email (without the code to make sure the user receive it)
The bug :
The thing is that by calling two times the change user email endpoint, I don't receive any email with the code.
If I wait 3-4 seconds between both change email user endpoint call I receive the email.
When both calls are done quickly one after the other, no email sent
