Skip to content

Commit

Permalink
Merge pull request #5 from utopia-php/fix-wrong-score-check
Browse files Browse the repository at this point in the history
Fixed score check
  • Loading branch information
eldadfux authored Jun 5, 2021
2 parents 2b8cc40 + 2d1de28 commit 8b7973a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Abuse/Adapters/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function check($score = 0.5):bool

//close connection
\curl_close($ch);
if ($result['success'] && $result['score'] < $score ) {
if ($result['success'] && $result['score'] >= $score ) {
return true;
} else {
return false;
Expand Down

0 comments on commit 8b7973a

Please sign in to comment.