From 318edbee15cbc0a318f673084efb73bf1a280dee Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Fri, 19 Jan 2024 14:36:40 -0800 Subject: [PATCH] Updated TLS verification warning logic. --- modules/quant_api/src/Form/SettingsForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quant_api/src/Form/SettingsForm.php b/modules/quant_api/src/Form/SettingsForm.php index bb086795..e1107499 100644 --- a/modules/quant_api/src/Form/SettingsForm.php +++ b/modules/quant_api/src/Form/SettingsForm.php @@ -126,7 +126,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { } // Show error if not using TSL verification. - if ((isset($overrides['api_tls_disabled']) && !$overrides['api_tls_disabled']) || !$config->get('api_tls_disabled')) { + if ((isset($overrides['api_tls_disabled']) && $overrides['api_tls_disabled']) || $config->get('api_tls_disabled')) { \Drupal::messenger()->addError($this->t('DANGER ZONE: TLS verification is disabled for Quant API connections. It is highly recommended that you update your server configuration to handle TLS rather than disabling TLS verification.')); }