hbehr.recaptcha.ReCaptchaObject.ValidateResponse C# (CSharp) Method

ValidateResponse() private method

private ValidateResponse ( IReChaptaWebInterface webInterface, string response ) : bool
webInterface IReChaptaWebInterface
response string
return bool
        internal bool ValidateResponse(IReChaptaWebInterface webInterface, string response)
        {
            CheckIfIamConfigured();
            var answer = webInterface.PostUserAnswer(response, _secretKey);
            TreatReCaptchaError(answer);
            return answer.Success;
        }

Same methods

ReCaptchaObject::ValidateResponse ( IReChaptaWebInterface webInterface, string response, WebProxy proxy ) : bool

Usage Example

Example #1
0
 public static bool ValidateCaptcha(string response, WebProxy proxy = null)
 {
     return(_reCaptcha.ValidateResponse(new GoogleWebPost(), response, proxy));
 }