fix(auth): show "Username taken" instead of generic "Registration failed" #23

Merged
nrupard merged 1 commit from fix/register-username-taken-error into main 2026-04-29 16:09:04 +02:00
Owner

When registration was rejected because the username already existed, the user saw the same generic "Registration failed" message used for all other failure modes. Surface a distinct USERNAME_TAKEN_ERROR for both the pre-insert lookup hit and the UNIQUE-violation race path so the user knows to pick a different name.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

When registration was rejected because the username already existed, the user saw the same generic "Registration failed" message used for all other failure modes. Surface a distinct USERNAME_TAKEN_ERROR for both the pre-insert lookup hit and the UNIQUE-violation race path so the user knows to pick a different name. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When registration was rejected because the username already existed, the user saw the same generic "Registration failed" message used for all other failure modes. Surface a distinct USERNAME_TAKEN_ERROR for both the pre-insert lookup hit and the UNIQUE-violation race path so the user knows to pick a different name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nrupard deleted branch fix/register-username-taken-error 2026-04-29 16:09:05 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!23
No description provided.