diff --git a/web/src/components/settings/wizard/Step1NameCamera.tsx b/web/src/components/settings/wizard/Step1NameCamera.tsx index 0467b54b8..9ef2f2c64 100644 --- a/web/src/components/settings/wizard/Step1NameCamera.tsx +++ b/web/src/components/settings/wizard/Step1NameCamera.tsx @@ -8,6 +8,7 @@ import { FormLabel, FormMessage, } from "@/components/ui/form"; +import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; import { Select, @@ -81,6 +82,7 @@ export default function Step1NameCamera({ password: z.string().optional(), brandTemplate: z.enum(CAMERA_BRAND_VALUES).optional(), onvifPort: z.coerce.number().int().min(1).max(65535).optional(), + useDigestAuth: z.boolean().optional(), customUrl: z .string() .optional() @@ -118,6 +120,7 @@ export default function Step1NameCamera({ : "dahua", customUrl: wizardData.customUrl || "", onvifPort: wizardData.onvifPort ?? 80, + useDigestAuth: wizardData.useDigestAuth ?? false, }, mode: "onChange", }); @@ -330,6 +333,32 @@ export default function Step1NameCamera({ /> )} + {probeMode && ( + ( + + + field.onChange(!!val)} + /> + +
+ + {t("cameraWizard.step1.useDigestAuth")} + + + {t("cameraWizard.step1.useDigestAuthDescription")} + +
+
+ )} + /> + )} + {!probeMode && (