From f9e4134381b72d2826439478115fc7e853f84a71 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 4 May 2026 07:41:27 -0500 Subject: [PATCH 1/3] return 404 from /api/login if auth is disabled --- frigate/api/auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate/api/auth.py b/frigate/api/auth.py index d1c968818..641131208 100644 --- a/frigate/api/auth.py +++ b/frigate/api/auth.py @@ -812,6 +812,11 @@ limiter = Limiter(key_func=get_remote_addr) ) @limiter.limit(limit_value=rateLimiter.get_limit) def login(request: Request, body: AppPostLoginBody): + if not request.app.frigate_config.auth.enabled: + return JSONResponse( + content={"message": "Authentication is disabled"}, status_code=404 + ) + JWT_COOKIE_NAME = request.app.frigate_config.auth.cookie_name JWT_COOKIE_SECURE = request.app.frigate_config.auth.cookie_secure JWT_SESSION_LENGTH = request.app.frigate_config.auth.session_length From 7856bf3ce239f607b36020466cfaf36bb7e94a89 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 4 May 2026 08:25:20 -0500 Subject: [PATCH 2/3] locale sort object label switches --- .../theme/widgets/ObjectLabelSwitchesWidget.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx b/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx index d3d6bdbe3..6446f00ae 100644 --- a/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx +++ b/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx @@ -2,7 +2,7 @@ import { WidgetProps } from "@rjsf/utils"; import { SwitchesWidget } from "./SwitchesWidget"; import { FormContext } from "./SwitchesWidget"; -import { getTranslatedLabel } from "@/utils/i18n"; +import i18n, { getTranslatedLabel } from "@/utils/i18n"; import { FrigateConfig } from "@/types/frigateConfig"; import { JsonObject } from "@/types/configForm"; @@ -76,7 +76,12 @@ function getObjectLabels(context: FormContext): string[] { ...sourceLabels, ...formDataLabels, ]); - return [...combinedLabels].sort(); + return [...combinedLabels].sort((a, b) => + getObjectLabelDisplayName(a).localeCompare( + getObjectLabelDisplayName(b), + i18n.language, + ), + ); } function getObjectLabelDisplayName(label: string): string { From 51224dfbcfaea61e2dd66d311c116d2931d7dd08 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 4 May 2026 08:34:56 -0500 Subject: [PATCH 3/3] enable search on object switches field --- .../config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx b/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx index 6446f00ae..072b9c017 100644 --- a/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx +++ b/web/src/components/config-form/theme/widgets/ObjectLabelSwitchesWidget.tsx @@ -99,6 +99,7 @@ export function ObjectLabelSwitchesWidget(props: WidgetProps) { i18nKey: "objectLabels", listClassName: "relative max-h-none overflow-visible md:max-h-64 md:overflow-y-auto md:overscroll-contain md:scrollbar-container", + enableSearch: true, }} /> );