From 2fea17fdaa2309ec8e965d95f1c6c6f042a1a319 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 21 Nov 2024 09:26:03 +0100 Subject: [PATCH] fix(api): :bug: Make uppercase usernames send errors during registration again --- api/api/v1/accounts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api/v1/accounts/index.ts b/api/api/v1/accounts/index.ts index fea0734a..50fe9e59 100644 --- a/api/api/v1/accounts/index.ts +++ b/api/api/v1/accounts/index.ts @@ -25,7 +25,7 @@ export const meta = applyConfig({ export const schemas = { json: z.object({ - username: z.string().toLowerCase(), + username: z.string(), email: z.string().toLowerCase(), password: z.string().optional(), agreement: z