From ed006dc5f9ffb16378ad2dbe2b14dfa0c9fedd83 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 28 Apr 2026 18:08:37 -0600 Subject: [PATCH] fix: enforce email length validation in reset password form - Added a maximum length constraint of 255 characters for the email input field. - Updated validation schema to include a message for exceeding the maximum length. --- apps/dokploy/pages/send-reset-password.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/pages/send-reset-password.tsx b/apps/dokploy/pages/send-reset-password.tsx index 8fa6be81f..ab706d289 100644 --- a/apps/dokploy/pages/send-reset-password.tsx +++ b/apps/dokploy/pages/send-reset-password.tsx @@ -30,6 +30,9 @@ const loginSchema = z.object({ .min(1, { message: "Email is required", }) + .max(255, { + message: "Email must be at most 255 characters", + }) .email({ message: "Email must be a valid email", }), @@ -118,7 +121,7 @@ export default function Home() { Email - +