Skip to content
Snippets Groups Projects
Commit 8de16109 authored by Demian Katz's avatar Demian Katz
Browse files

Always use secure connection for ReCaptcha.

parent 7411e9c6
Branches
Tags
No related merge requests found
......@@ -468,7 +468,9 @@ class Factory
: (isset($config->Captcha->privateKey)
? $config->Captcha->privateKey
: '');
$recaptcha = new \LosReCaptcha\Service\ReCaptcha($siteKey, $secretKey);
$recaptcha = new \LosReCaptcha\Service\ReCaptcha(
$siteKey, $secretKey, ['ssl' => true]
);
if (isset($config->Captcha->theme)) {
$recaptcha->setOption('theme', $config->Captcha->theme);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment