Page MenuHomePhabricator

[identity] Update invalid username check on Identity service
ClosedPublic

Authored by varun on Mar 14 2024, 8:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 27 2025, 7:27 PM
Unknown Object (File)
Feb 27 2025, 7:27 PM
Unknown Object (File)
Feb 27 2025, 8:45 AM
Unknown Object (File)
Feb 26 2025, 7:18 AM
Unknown Object (File)
Feb 26 2025, 7:15 AM
Unknown Object (File)
Feb 23 2025, 3:21 AM
Unknown Object (File)
Jan 20 2025, 3:54 AM
Unknown Object (File)
Jan 19 2025, 6:04 AM
Subscribers

Details

Summary
  1. check that the username is valid (no invalid special characters, min length 1, max length 191, starts with alphanumeric character)
  2. return invalid username error instead of username reserved error if username is a valid eth address
Test Plan
  1. unit tests
  2. used commtest to try registering various invalid usernames, confirmed that i got an invalid username response from identity each time

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable