summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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",