From be79ad89b6da005134c904e97be976fb74037406 Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Sat, 14 Mar 2026 15:35:48 -0500
Subject: [PATCH] hide set password menu option when native auth is disabled
(#22439)
---
web/src/components/menu/AccountSettings.tsx | 28 +++++++++---------
web/src/components/menu/GeneralSettings.tsx | 32 ++++++++++++---------
web/src/types/frigateConfig.ts | 1 +
3 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/web/src/components/menu/AccountSettings.tsx b/web/src/components/menu/AccountSettings.tsx
index e5a367391..be05422b9 100644
--- a/web/src/components/menu/AccountSettings.tsx
+++ b/web/src/components/menu/AccountSettings.tsx
@@ -126,19 +126,21 @@ export default function AccountSettings({ className }: AccountSettingsProps) {
- {profile?.username && profile.username !== "anonymous" && (
-
- )}
+ {config?.auth?.enabled !== false &&
+ profile?.username &&
+ profile.username !== "anonymous" && (
+
+ )}
- {profile?.username && profile.username !== "anonymous" && (
-
- )}
+ {config?.auth?.enabled !== false &&
+ profile?.username &&
+ profile.username !== "anonymous" && (
+
+ )}