Is there are specific reason why wm.CodeReturned leads to Errors.User.Code.NotFound?
if requireExisting && wm.InviteCode == nil || wm.CodeReturned {
return nil, nil, zerrors.ThrowPreconditionFailed(nil, "COMMAND-Wr3gq", "Errors.User.Code.NotFound")
}
https://github.com/zitadel/zitadel/issues/10718
I would like to understand if this is expected behavior or a bug because it's blocking our adoption of zitadel.
Steps:
1. Add new user
2. Create invite code and return code instead of sending
3. Try to login with the new userGitHub
[Bug]: Return invite code produces error in login v2 · Issue #1071...
Preflight Checklist I could not find a solution in the documentation, the existing issues or discussions I have joined the ZITADEL chat Environment Self-hosted Version 4.1.4 Database PostgreSQL Dat...
2 Replies
Hi @Jan, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. Verify an invite code for a user :
Describes how invite codes are verified and the expected API behavior when verifying a code for a user. 2. Resend an invite code for a user :
Explains the process for resending invite codes and may provide insight into invite code handling. Feel free to tag @Ask Inkeep with additional questions. Got it. Tagging @Rajat for additional help.
Describes how invite codes are verified and the expected API behavior when verifying a code for a user. 2. Resend an invite code for a user :
Explains the process for resending invite codes and may provide insight into invite code handling. Feel free to tag @Ask Inkeep with additional questions. Got it. Tagging @Rajat for additional help.
hey @Jan thanks for your queestion, I will look into this and will get back to you