Merge pull request #169 from BuTaMuH/patch

Fix bug in src/User/component/ReCaptchaComponent.php
This commit is contained in:
Antonio Ramirez
2018-03-23 11:30:36 +01:00
committed by GitHub

View File

@ -63,7 +63,7 @@ class ReCaptchaComponent extends Component
] ]
)) ))
->get( ->get(
'site/verify', 'siteverify',
[ [
'secret' => $this->secret, 'secret' => $this->secret,
'response' => $value, 'response' => $value,
@ -72,6 +72,6 @@ class ReCaptchaComponent extends Component
) )
->send(); ->send();
return $response['success'] ? : false; return $response->getData()['success'] ? : false;
} }
} }