mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 12:13:28 +00:00
Polish: Fix API client usage lint errors
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user