From 08d292474e8310a73fb28d35c500bd8063b73ca3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 19 Jan 2026 00:27:30 +0000 Subject: check username --- lib/register.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/register.ts b/lib/register.ts index 8b893d6c..a74ea640 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -21,6 +21,7 @@ export default async (user, ip) => { if (!valid.test(username)) fail("Usernames can only have letters and numbers"); if (reserved.includes(username)) fail("Invalid username"); + if (username.includes("undefined")) fail("Invalid username"); const id = v4(); user.id = id; -- cgit v1.2.3