Skip to content

feat(auth): #67: loosen username validation to allow letters, digits, underscores, and hyphens - #73

Merged
imdeepmind merged 1 commit into
developfrom
#67
Aug 29, 2026
Merged

feat(auth): #67: loosen username validation to allow letters, digits, underscores, and hyphens#73
imdeepmind merged 1 commit into
developfrom
#67

Conversation

@imdeepmind

Copy link
Copy Markdown
Owner

Summary

Loosen username validation so accounts can contain uppercase and lowercase letters, digits (0-9), underscores (_), and hyphens (-) ([a-zA-Z0-9_-]).

Changes

  • Backend (internal/features/auth): Added custom username_format validator checking ^[a-zA-Z0-9_-]+$ and updated DTO tags (RegisterInput, LoginInput, ResetPasswordInput).
  • Frontend (frontend/src/lib/validations.ts): Updated Zod usernameSchema regex to /^[a-zA-Z0-9_-]+$/.

Closes #67

@imdeepmind
imdeepmind merged commit cb7fcce into develop Aug 29, 2026
6 checks passed
@imdeepmind
imdeepmind deleted the #67 branch August 29, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loosen username validation: allow a-z, A-Z, underscore and hyphen

1 participant