mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 19:38:47 +00:00
fallback to empty string was redundant - Zod ensures this field exists when mode is "credentials"
This commit is contained in:
@@ -140,7 +140,7 @@ export const AddInvitation = () => {
|
|||||||
if (data.mode === "credentials") {
|
if (data.mode === "credentials") {
|
||||||
await createUserWithCredentials({
|
await createUserWithCredentials({
|
||||||
email: data.email.toLowerCase(),
|
email: data.email.toLowerCase(),
|
||||||
password: data.password || "",
|
password: data.password,
|
||||||
role: data.role,
|
role: data.role,
|
||||||
});
|
});
|
||||||
toast.success("User created with initial credentials");
|
toast.success("User created with initial credentials");
|
||||||
|
|||||||
Reference in New Issue
Block a user