address comment

This commit is contained in:
DaKheera47 2026-01-22 16:49:49 +00:00
parent 0dc12eebc3
commit 572824c03d

View File

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