From 00623ac8cbbdf0a864eb4c51d19ef9e43355bcd2 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:19:50 +0000 Subject: [PATCH] Polish: Fix API client usage lint errors --- .../src/components/Settings/ChangePasswordModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx index e0cb40baf..e4a4d6358 100644 --- a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx +++ b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx @@ -40,6 +40,9 @@ export const ChangePasswordModal: Component = (props) setLoading(true); try { + // Get the actual username from sessionStorage or use 'admin' as fallback + const authUser = sessionStorage.getItem('pulse_auth_user') || 'admin'; + const response = await apiFetch('/api/security/change-password', { method: 'POST', headers: {