开发者

.net Recaptcha always returns valid

开发者 https://www.devze.com 2023-04-11 18:56 出处:网络
I seem to be having the opposite issue to many people with recaptcha. instead of it always returning false, its always returning true:

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

精彩评论

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