Skip to content

Commit

Permalink
Merge pull request #2 from ossycodes/updates
Browse files Browse the repository at this point in the history
minor updates
  • Loading branch information
ossycodes authored Jan 7, 2023
2 parents b2c6294 + 7cfd1d2 commit 0e0e9b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ If you discover any security related issues, please email osaigbovoemmanuel1@gma
## Credits

- [Osaigbovo Emmanuel](https://github.com/ossycodes)
- [Julian Dorn](https://github.com/wi-wissen)
- [All Contributors](../../contributors)

## License
Expand Down
16 changes: 13 additions & 3 deletions src/FriendlyCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ class FriendlyCaptcha
*/
protected $sitekey;

/**
* FriendlyCaptcha Puzzle endpoint
*/
protected $puzzle;

/**
* FriendlyCaptcha verify endpoint
*/
protected $verify;

/**
* error messages
*
Expand All @@ -38,8 +48,8 @@ public function __construct($secret, $sitekey, $puzzle, $verify, $options = [])
{
$this->secret = $secret;
$this->sitekey = $sitekey;
$this->puzzle = $puzzle;
$this->verify = $verify;
$this->puzzle = $puzzle;
$this->verify = $verify;
$this->http = new Client($options);
}

Expand Down Expand Up @@ -157,7 +167,7 @@ public function verifyResponse($solution)
if (isset($verifyResponse['error'])) {
$this->errors = [$verifyResponse['error']];
}

$this->isSuccess = false;

return $this;
Expand Down

0 comments on commit 0e0e9b7

Please sign in to comment.