address comment
This commit is contained in:
parent
0dc12eebc3
commit
572824c03d
@ -42,6 +42,13 @@ export const updateSettingsSchema = z.object({
|
||||
path: ["basicAuthUser"],
|
||||
});
|
||||
}
|
||||
if (!data.basicAuthPassword || data.basicAuthPassword.trim() === "") {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
message: "Password is required when basic auth is enabled",
|
||||
path: ["basicAuthPassword"],
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user