Kentico reCaptcha 不会阻止表单提交

Kentico reCaptcha does not block form submission

我的 WebPart 中有 reCaptcha FormControl

<script src='https://www.google.com/recaptcha/api.js'></script>
......

    <div class="form-group">
        <label>Please type the word below. If required use the buttons to change or listen to the word.</label>
        <cms:RecaptchaControl ID="reCaptchaVld" runat="server" data-theme="clean" data-callback="cpCallBack();" PrivateKey="xxxxxxxxx" PublicKey="xxxxxxxxx" data-recaptcha="" CssClass="g-recaptcha" /> 
    </div>

我做了一个测试,我填写了所有必填字段,但将 reCaptcha 留空或未选中,单击“提交”按钮,表单已成功提交。

我是不是漏掉了什么?

如果是自定义webpart,需要调用IsValid()方法检查输入的文字是否正确