From 20cba1b6959a05c7df3816efcc1c6a2e218866f1 Mon Sep 17 00:00:00 2001 From: ompathak2004 Date: Tue, 4 Feb 2025 01:48:25 +0530 Subject: [PATCH] feat: update password max length to 72 characters --- beszel/site/src/components/login/auth-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beszel/site/src/components/login/auth-form.tsx b/beszel/site/src/components/login/auth-form.tsx index b2b1bac..743a687 100644 --- a/beszel/site/src/components/login/auth-form.tsx +++ b/beszel/site/src/components/login/auth-form.tsx @@ -14,7 +14,7 @@ import { Trans, t } from "@lingui/macro" const honeypot = v.literal("") const emailSchema = v.pipe(v.string(), v.email(t`Invalid email address.`)) -const passwordSchema = v.pipe(v.string(), v.minLength(8, t`Password must be at least 8 characters.`)) +const passwordSchema = v.pipe(v.string(), v.minLength(8, t`Password must be at least 8 characters.`), v.maxLength(72, t`Password must not exceed 72 characters.`)) const LoginSchema = v.looseObject({ name: honeypot,