Skip to content

Commit

Permalink
Updated TLS verification warning logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 19, 2024
1 parent c039587 commit 318edbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/quant_api/src/Form/SettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<strong>DANGER ZONE:</strong> TLS verification is disabled for Quant API connections. It is <strong>highly recommended</strong> that you update your server configuration to handle TLS rather than disabling TLS verification.'));
}

Expand Down

0 comments on commit 318edbe

Please sign in to comment.