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)
Fri, Apr 26, 1:49 AM
Unknown Object (File)
Thu, Apr 25, 8:10 AM
Unknown Object (File)
Thu, Apr 25, 8:10 AM
Unknown Object (File)
Thu, Apr 25, 8:06 AM
Unknown Object (File)
Thu, Apr 25, 7:23 AM
Unknown Object (File)
Mon, Apr 15, 10:59 PM
Unknown Object (File)
Sun, Mar 31, 6:30 AM
Unknown Object (File)
Mar 26 2024, 5:11 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