Email Verification required and Captcha return the same error code
Hey! 👋
I think this might be a bug — or at least a DX issue — because the current implementation doesn’t let us differentiate between different failure cases.
Here’s the relevant code:
The issue is that both of the following failure cases return the same 403 status:
- When the user hasn’t verified their email.
- When the captcha check fails.
The frontend can’t tell them apart, so users get the same error message either way — which is confusing and bad UX.
1 Reply
Suggestion:
It’d be much cleaner if the backend returned a more specific error code or identifier in the response body.
For example:
And
This would allow the frontend to handle each case with proper context, like:
Let me know if this is already possible and I missed something — or if there’s a workaround. Thanks! 🙌