hbehr.recaptcha.ReCaptchaObject.ValidateResponse C# (CSharp) 메소드

ValidateResponse() 개인적인 메소드

private ValidateResponse ( IReChaptaWebInterface webInterface, string response ) : bool
webInterface IReChaptaWebInterface
response string
리턴 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

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