fix minor bug

This commit is contained in:
MathMan05 2025-03-22 23:03:33 -05:00 committed by GitHub
parent ec1d7273f9
commit 109bf0da7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",