spacebarchat / server

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love
https://spacebar.chat
GNU Affero General Public License v3.0
1.42k stars 243 forks source link

Consistent username length requirement #1179

Closed DEVTomatoCake closed 1 month ago

DEVTomatoCake commented 1 month ago

Currently, depending on the endpoint used, there's a minimum char count of 2 vs. 1, and maximum char count 32 vs. 100 for usernames.

This PR sets the requirement for usernames of users (not bots/webhooks) to minimum 2 characters, and maximum the value of the config limits_user_maxUsername (32 by default).