.net Recaptcha always returns valid
I seem to be having the opposite issue to many people with recaptcha. instead of it always returning false, its always returning true:
<recaptcha:RecaptchaControl
ID="recaptcha"
runat="server"
PublicKey="just hiding this here but i do have one generated"
PrivateKey="just hiding this here but i do have one generated"
/>
code behind:
protected void btnSubmit_Click(object sender, EventArg开发者_JS百科s e)
{
Response.Write(recaptcha.IsValid);
}
always returns true even when i should be false. ive even tried re-downloading the latest version but the problem is still there!!!!
Assuming this is the RecaptchaControl
you are using, it looks like you need to call Validate()
first.
If that doesn't work, maybe your app has gained sentience and answered the Recaptcha correctly. :)
精彩评论