mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 14:45:42 +02: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") {
|
||||
await createUserWithCredentials({
|
||||
email: data.email.toLowerCase(),
|
||||
password: data.password || "",
|
||||
password: data.password,
|
||||
role: data.role,
|
||||
});
|
||||
toast.success("User created with initial credentials");
|
||||
|
||||
Reference in New Issue
Block a user