diff --git a/src/routes/api/user/+server.ts b/src/routes/api/user/+server.ts
index 1dcc58e..cb39114 100644
--- a/src/routes/api/user/+server.ts
+++ b/src/routes/api/user/+server.ts
@@ -39,6 +39,12 @@ export async function POST({ request, getClientAddress }) {
error: "missing fields",
});
}
+ if (body.username.length < 3 || body.username.length > 24) {
+ return json