示例#1
0
 /**
  * Validate input
  */
 public function validate()
 {
     $response = $this->reCaptcha->check($this->Input->post("recaptcha_challenge_field"), $this->Input->post("recaptcha_response_field"));
     if (!$response->isValid()) {
         $this->addError($GLOBALS['TL_LANG']['ERR']['captcha']);
         $this->reCaptcha->setError($response->getError());
     }
 }