diff --git a/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx b/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx index 150fcc9e0..314379586 100644 --- a/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx +++ b/apps/dokploy/components/dashboard/settings/users/add-invitation.tsx @@ -139,7 +139,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"); diff --git a/packages/server/src/services/user.ts b/packages/server/src/services/user.ts index 976f676ba..243751705 100644 --- a/packages/server/src/services/user.ts +++ b/packages/server/src/services/user.ts @@ -405,7 +405,7 @@ export const createOrganizationUserWithCredentials = async ({ organizationId: string; email: string; password: string; - role: "member" | "admin"; + role: string; }) => { const normalizedEmail = email.trim().toLowerCase(); const now = new Date();