如何使用recaptcha隐形?

问题描述

我的 Laravel 网站上有一个联系表格。我添加一个隐形的recaptcha。这是我的代码

<div class="contact-form-ftr">
     <form method="post" action="{{ route('contact.store') }}" id="form" data-toggle="validator">
          <div class="form-group pmd-textfield pmd-textfield-floating-label col-lg-6 col-md-6 col-sm-6 col-xs-12 no-padding contact-padding">
                   <label class="control-label">
                          Nom
                   </label>
                   <input type="text" name="name" class="form-control" required>
          </div>
          <div class="form-group pmd-textfield pmd-textfield-floating-label col-lg-6 col-md-6 col-sm-6 col-xs-12">
                   <label class="control-label">
                          Email
                   </label>
                   <input type="email" name="email" class="form-control" required>
           </div>
                           
           <div class="g-recaptcha" data-sitekey="_____"  data-size="invisible"></div>
                   <div class="send text-right" {{-- style="margin-top: 200px" --}}>
                          <button type="submit" class="red-btn-send"><i class="fa fa-envelope"></i> Envoyer </button >
                   </div>
      </form>
</div>

一旦所有输入都填好,我就无法提交表单。

解决方法

注册新验证码选择 Invisible reCAPTCHA 徽章选项(reCAPTCHA v2 中提供 Invisible reCAPTCHA 徽章选项)。

enter image description here