diff --git a/src/NdCaptcha/NdCaptcha.php b/src/NdCaptcha/NdCaptcha.php index c5f5031..219775b 100644 --- a/src/NdCaptcha/NdCaptcha.php +++ b/src/NdCaptcha/NdCaptcha.php @@ -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; }