summary refs log tree commit diff
path: root/src/api/routes/users
diff options
context:
space:
mode:
authorMathMan05 <73901602+MathMan05@users.noreply.github.com>2025-03-22 23:03:33 -0500
committerGitHub <noreply@github.com>2025-03-22 23:03:33 -0500
commit109bf0da7c6720e40dcb6029a9dd1e5f1299c3eb (patch)
tree3ac7d819140b1dd0165e19f3a6a5e476f8f5a083 /src/api/routes/users
parentMerge pull request #1258 from thedudedies21/registration_tokens (diff)
downloadserver-ts-109bf0da7c6720e40dcb6029a9dd1e5f1299c3eb.tar.xz
fix minor bug
Diffstat (limited to 'src/api/routes/users')
-rw-r--r--src/api/routes/users/@me/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts

index 9cd8bfda..2ec6f499 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts
@@ -152,7 +152,7 @@ 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",