From aba1668d2cab63a031657fb7c9f2bfb9777fa72a Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 17 Nov 2025 17:00:26 -0600 Subject: [PATCH] fix(register): added the ability to put in _ for user name --- app/src/internal/auth/routes/register.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/internal/auth/routes/register.ts b/app/src/internal/auth/routes/register.ts index fd13f00..9c33088 100644 --- a/app/src/internal/auth/routes/register.ts +++ b/app/src/internal/auth/routes/register.ts @@ -18,7 +18,7 @@ const registerSchema = z.object({ .string() .min(3) .max(32) - .regex(/^[a-zA-Z0-9.]+$/, "Only alphanumeric + dots allowed"), + .regex(/^[a-zA-Z0-9._]+$/, "Only alphanumeric + dots allowed"), displayUsername: z.string().min(2).max(100).optional(), // optional in your API, but supported });