From be3d7825e1c05e807528a1028f811cafa0401b32 Mon Sep 17 00:00:00 2001 From: mhbdev Date: Wed, 11 Feb 2026 17:15:26 +0330 Subject: [PATCH] fallback to empty string was redundant - Zod ensures this field exists when mode is "credentials" --- .../components/dashboard/settings/users/add-invitation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx b/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx index bdd69575e..db29a5f23 100644 --- a/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx +++ b/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx @@ -140,7 +140,7 @@ export const AddInvitation = () => { if (data.mode === "credentials") { await createUserWithCredentials({ email: data.email.toLowerCase(), - password: data.password || "", + password: data.password, role: data.role, }); toast.success("User created with initial credentials");