Skip to content

Commit

Permalink
still #10, replace by
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Jun 23, 2015
1 parent 48085ed commit c3b6303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/Component/RecaptchaComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RecaptchaComponent extends Component
*
* @var RecaptchaResponse
*/
public $response;
protected $recaptchaResponse;

/**
* Recaptcha.
Expand Down Expand Up @@ -68,9 +68,9 @@ public function startup(Event $event)
if (empty($secret)) {
throw new Exception(__d('recaptcha', "You must set the secret Recaptcha key in config/recaptcha.php file"));
}
$this->response = new RecaptchaResponse();
$this->recaptchaResponse = new RecaptchaResponse();
// instantiate Recaptcha object that deals with retrieving data from google recaptcha
$this->recaptcha = new Recaptcha($this->response, $secret);
$this->recaptcha = new Recaptcha($this->recaptchaResponse, $secret);
$controller = $event->subject();

$this->setController($controller);
Expand Down

0 comments on commit c3b6303

Please sign in to comment.