fix(register): added the ability to put in _ for user name

This commit is contained in:
2025-11-17 17:00:26 -06:00
parent 20fc286069
commit aba1668d2c

View File

@@ -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
});