HomePhabricator
Diffusion Comm f3c665ffa54b

[identity] Update invalid username check on Identity service

Description

[identity] Update invalid username check on Identity service

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

Reviewers: bartek, michal, will

Reviewed By: bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11329

Details

Provenance
varunAuthored on Mar 14 2024, 8:43 AM
Reviewer
bartek
Differential Revision
D11329: [identity] Update invalid username check on Identity service
Parents
rCOMM9af69c74ee2b: [native] fix long keyserver names ui bug
Branches
Unknown
Tags
Unknown