Description
It's possible to create an invitation for an email address that already has an active account in the system. The invite is created successfully, but when the user tries to accept it via the new-user flow, it fails with "Account already exists."
Steps to reproduce
- Register a user with
admin@test.com
- Create an invite for
admin@test.com to the same or different org
- Invite is created successfully — should warn or redirect to existing-user flow
Expected behavior
The new-user accept endpoint should handle this gracefully — either reject the invite creation, or redirect to the existing-user accept flow instead of failing with a confusing error.
Description
It's possible to create an invitation for an email address that already has an active account in the system. The invite is created successfully, but when the user tries to accept it via the new-user flow, it fails with "Account already exists."
Steps to reproduce
admin@test.comadmin@test.comto the same or different orgExpected behavior
The new-user accept endpoint should handle this gracefully — either reject the invite creation, or redirect to the existing-user accept flow instead of failing with a confusing error.