Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Polish: Fix API client usage lint errors

rcourtman00623ac8cbbd
diff --git a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx
index e0cb40bafe..e4a4d6358c 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<ChangePasswordModalProps> = (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: {