Skip to content

Commit

Permalink
Merge branch 'development' of github.com:warifp/nd-captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
warifp committed Jul 23, 2021
2 parents 5429872 + 6b79094 commit 7018bd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/NdCaptcha/NdCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ public function init() {
'status' => true,
'captcha' => $resResponse[1],
];
} else if($resResponse[0] == 'ERROR_WRONG_USER_KEY') {
$data = [
'status' => false,
'captcha' => $resResponse[0],
];
} else if($resResponse[0] == 'ERROR_WRONG_CAPTCHA_ID') {
$data = [
'status' => false,
'captcha' => $resResponse[0],
];
} else{
goto start;
}
Expand Down

0 comments on commit 7018bd0

Please sign in to comment.