Skip to content

Commit be3d782

Browse files
committed
fallback to empty string was redundant - Zod ensures this field exists when mode is "credentials"
1 parent c6efe6f commit be3d782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dokploy/components/dashboard/settings/users/add-invitation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const AddInvitation = () => {
140140
if (data.mode === "credentials") {
141141
await createUserWithCredentials({
142142
email: data.email.toLowerCase(),
143-
password: data.password || "",
143+
password: data.password,
144144
role: data.role,
145145
});
146146
toast.success("User created with initial credentials");

0 commit comments

Comments
 (0)