hbehr.recaptcha.ReCaptchaObject.ValidateResponse C# (CSharp) Méthode

ValidateResponse() private méthode

private ValidateResponse ( IReChaptaWebInterface webInterface, string response ) : bool
webInterface IReChaptaWebInterface
response string
Résultat 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

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