Merge branch 'master' of https://github.com/spacebarchat/server into update_webhooks

This commit is contained in:
root committed 2025-03-23 16:33:24 -07:00
commit b03888fd62
5 files changed
+20 -26

No files matched your search

+4 -1
View File
@@ -152,7 +152,10 @@ router.patch(
}
const { maxUsername } = Config.get().limits.user;
if (check_username.length > maxUsername) {
if (
check_username.length > maxUsername ||
check_username.length < 2
) {
throw FieldErrors({
username: {
code: "BASE_TYPE_BAD_LENGTH",