Skip to content

Fix: Suggest a username with random suffix#30

Open
PDFour4 wants to merge 1 commit intoCMU-313:mainfrom
PDFour4:main
Open

Fix: Suggest a username with random suffix#30
PDFour4 wants to merge 1 commit intoCMU-313:mainfrom
PDFour4:main

Conversation

@PDFour4
Copy link
Copy Markdown

@PDFour4 PDFour4 commented Feb 2, 2026

Added suggestUsername function: Converts the requested username into a slug and appends a random three-digit number to ensure uniqueness.

Enhanced Error Feedback: Updated the validateUsername logic to include the suggestion directly within the error message when a username collision occurs.

Closes (#1 )

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21601810965

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.841%

Totals Coverage Status
Change from base Build 21503398961: 0.0%
Covered Lines: 25358
Relevant Lines: 30328

💛 - Coveralls

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.

2 participants