Skip to content

Commit

Permalink
Merge pull request #52 from milanobrtlik/doc-readme-check-is-wrong
Browse files Browse the repository at this point in the history
Doc: Wrong comparison
  • Loading branch information
eldadfux authored Jul 31, 2023
2 parents 256584e + 69432e4 commit f707cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $abuse = new Abuse($adapter);

// Use vars to resolve adapter key

if(!$abuse->check()) {
if($abuse->check()) {
throw new Exception('Service was abused!'); // throw error and return X-Rate limit headers here
}
```
Expand All @@ -83,7 +83,7 @@ use Utopia\Abuse\Adapters\ReCaptcha;
$adapter = new ReCaptcha('secret-api-key', $_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
$abuse = new Abuse($adapter);

if(!$abuse->check()) {
if($abuse->check()) {
throw new Exception('Service was abused!'); // throw error and return X-Rate limit headers here
}
```
Expand Down

0 comments on commit f707cbc

Please sign in to comment.