mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
fix minor bug
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user