authgear / authgear/authgear-server
Wrong Error message when invitee email address unverified
- Dominant language
- Go
- Stars
- 2k
- Forks
- 125
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 32
Description
**Describe the bug**
- In self-deployment, the user emails in Authgear portal (`accounts`) may left unverified due to the lack of email server. The admin may choose to manually verify the email offline instead.
- When an invitation link to a project is accepted by a user, they will see "The invitee email does not match your logged in email", while the email address is actually correct

**Todo**
- Return a correct error message here
> ## Email address must be verified
> Your email address must be verified to accept the invitation. Please contact admin to verify your email address.
> [Login as another user]
Contributor guide
Research direction
The issue names no files, tests, or entry points. Trace the project invitation acceptance flow to the current email-mismatch error, then verify the unverified-email case and update the result to the specified message; add or adjust coverage if the relevant test area is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100