fix(auth): show "Username taken" instead of generic "Registration failed" #23
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/register-username-taken-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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