开发者

.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. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜