Skip to content

Commit

Permalink
Use isvalid method to fix recap not working bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffe1neAdd1ct committed Sep 16, 2015
1 parent 4017ac6 commit af5c336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/** contact form was submitted, try to send the email */
if (isset($postSubmit)) {

if($recaptchService->verify($postRecaptchChallenge, $postRecaptchResponse)) {
if($recaptchService->verify($postRecaptchChallenge, $postRecaptchResponse)->isValid()) {

$mailer->setFromName(filter_input(INPUT_POST, 'name', FILTER_DEFAULT));
$mailer->setReplyTo(filter_input(INPUT_POST, 'email', FILTER_DEFAULT));
Expand Down

0 comments on commit af5c336

Please sign in to comment.