Skip to content

Commit 46287a3

Browse files
author
Mike van den Hoek
committed
(refactor): restore 'Passphrase' form setting, is only used when this setting has a value
1 parent 694a6f8 commit 46287a3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/PrefillGravityForms/Controllers/BaseController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ protected function handleCurl(array $args): array
199199
$curl = curl_init();
200200

201201
curl_setopt_array($curl, $this->getDefaultCurlArgs() + $args);
202+
203+
if (! empty($this->settings->getPassphrase())) {
204+
curl_setopt($curl, CURLOPT_SSLKEYPASSWD, $this->settings->getPassphrase());
205+
}
206+
202207
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
203208
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
204209

src/PrefillGravityForms/Controllers/EnableUController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class EnableUController extends BaseController
77
public function handle(array $form)
88
{
99
$bsn = $this->getBSN($form);
10-
// $bsn = '999995078';
1110

1211
if (empty($bsn)) {
1312
return $form;

0 commit comments

Comments
 (0)