authgear / authgear/authgear-server

Wrong Error message when invitee email address unverified

Open
#3,674 0 comments 0 reactions 0 assignees View on GitHub
bug/trivial
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

![image](https://github.com/authgear/authgear-server/assets/15207470/d43c0674-bcf5-423c-9b5e-0f5e49867528)

**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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.