App_Code.Controls.RecaptchaControl.ValidateAsync C# (CSharp) Method

ValidateAsync() public method

Validates the async.
public ValidateAsync ( string response, string challenge ) : bool
response string /// The response. ///
challenge string /// The challenge. ///
return bool
        public bool ValidateAsync(string response, string challenge)
        {
            if (this.RecaptchaLoggingEnabled)
            {
                this.RecaptchaAttempts++;
            }

            this.RecaptchaResponseValue = response;
            this.RecaptchaChallengeValue = challenge;
            this.Validate();
            return this.IsValid;
        }