File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ public function hookDisplayCustomerAccountForm($params)
275
275
* @param array $params
276
276
*
277
277
* @return bool|void
278
+ *
278
279
* @deprecated since 2.4.0
279
280
*/
280
281
public function hookActionContactFormSubmitCaptcha ($ params )
@@ -291,6 +292,7 @@ public function hookActionContactFormSubmitCaptcha($params)
291
292
* @param array $params
292
293
*
293
294
* @return bool|void
295
+ *
294
296
* @since 2.4.0
295
297
*/
296
298
public function hookActionCustomerRegisterSubmitCaptcha ($ params )
@@ -394,12 +396,12 @@ protected function _validateCaptcha()
394
396
395
397
$ context = Context::getContext ();
396
398
//Fix issue if allow_url_open is set to 0
397
- if ( function_exists ('ini_get ' ) && !ini_get ('allow_url_fopen ' )){
399
+ if (function_exists ('ini_get ' ) && !ini_get ('allow_url_fopen ' )) {
398
400
$ recaptchaMethod = new \ReCaptcha \RequestMethod \CurlPost ();
399
401
} else {
400
402
$ recaptchaMethod = null ;
401
403
}
402
- $ captcha = new ReCaptcha (Configuration::get ('CAPTCHA_PRIVATE_KEY ' ),$ recaptchaMethod );
404
+ $ captcha = new ReCaptcha (Configuration::get ('CAPTCHA_PRIVATE_KEY ' ), $ recaptchaMethod );
403
405
$ result = $ captcha ->verify (
404
406
Tools::getValue ('g-recaptcha-response ' ),
405
407
Tools::getRemoteAddr ()
You can’t perform that action at this time.
0 commit comments