From a5cd2eaa197528359a456564ad6af50a3a2fc1d9 Mon Sep 17 00:00:00 2001 From: Xin Feng <126309503+danielxfeng@users.noreply.github.com> Date: Wed, 4 Feb 2026 23:37:06 +0200 Subject: [PATCH] refactor/frontend: update password schema to require a minimum length of 6 characters --- frontend/src/lib/schemas/userSchema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/schemas/userSchema.ts b/frontend/src/lib/schemas/userSchema.ts index 455630d..f9ca9d6 100644 --- a/frontend/src/lib/schemas/userSchema.ts +++ b/frontend/src/lib/schemas/userSchema.ts @@ -15,7 +15,7 @@ const usernameSchema = z message: 'Username may only contain letters, numbers, ".", "_" or "-"' }); -const passwordSchema = z.string().trim().min(3).max(20).refine(isAlphaNumericLegalSymbols, { +const passwordSchema = z.string().trim().min(6).max(20).refine(isAlphaNumericLegalSymbols, { error: 'Password may only contain letters, numbers, and the following symbols: ,.#$%@^;|_!*&?' });