HomePhabricator
Diffusion Comm 084b4dfda205

added reservedusers Set, added check to account-creator

Description

added reservedusers Set, added check to account-creator

Summary:
Created Set<String> of reservedUsernamesSet containing DOAs, TLDs, and reserved words. Exported Set to account-creator.

Added check to account-creator.js that compares newuser query against reservedUsernamesSet.

https://linear.app/comm/issue/COM-88/reserved-usernames-blocklist

**Updated reservedUsernamesSet with 3 comments denoting the source of the lists. (DAO aggregate, Github reservedusernames, TLD list). Included links as comments

**Updated DAO list in reservedUsernamesSet to be alphabetized

Test Plan:
Tested valid usernames (not in reservedusers)
Tested reserved usernames
Lowercase
Mismatched Case
Uppercase

Reviewers: ashoat, atul, benschac

Reviewed By: benschac

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, benschac, boristopalov

Differential Revision: https://phabricator.ashoat.com/D2344

Details

Provenance
anandAuthored on Nov 15 2021, 10:06 AM
Reviewer
benschac
Differential Revision
Restricted Differential Revision
Parents
rCOMM9e755ea5a51d: [docs] Moving "Codegen for gRPC" to configuration category
Branches
Unknown
Tags
Unknown
Reverted By
rCOMM3d4b3fc8f76a: Revert "added reservedusers Set, added check to account-creator"