fallback to empty string was redundant - Zod ensures this field exists when mode is "credentials"

This commit is contained in:
mhbdev
2026-02-11 17:15:26 +03:30
parent c6efe6f35b
commit be3d7825e1

View File

@@ -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");