diff --git a/app/Controllers/Setting/HealthplixSettings.php b/app/Controllers/Setting/HealthplixSettings.php index f147515..7efb724 100644 --- a/app/Controllers/Setting/HealthplixSettings.php +++ b/app/Controllers/Setting/HealthplixSettings.php @@ -82,9 +82,13 @@ class HealthplixSettings extends BaseController ]); } + $storedFetchSecret = $this->readSettingValue('HEALTHPLIX_FETCH_SECRET'); + return $this->response->setJSON([ 'update' => 1, 'error_text' => 'Saved ' . $savedCount . ' setting(s)', + 'healthplixFetchSecretConfigured' => $storedFetchSecret !== '', + 'healthplixFetchSecretMasked' => $this->maskKey($storedFetchSecret), 'csrfName' => csrf_token(), 'csrfHash' => csrf_hash(), ]); diff --git a/app/Views/Setting/Admin/healthplix_settings.php b/app/Views/Setting/Admin/healthplix_settings.php index 4905e96..079886e 100644 --- a/app/Views/Setting/Admin/healthplix_settings.php +++ b/app/Views/Setting/Admin/healthplix_settings.php @@ -136,6 +136,16 @@ $('#healthplix_settings_msg').html('