vendor/shopware/storefront/Resources/views/storefront/component/captcha/googleReCaptchaV2.html.twig line 1

Open in your IDE?
  1. {% block component_captcha_google_re_captcha_v2 %}
  2.     {% set googleReCaptchaV2Options = {
  3.         siteKey: config('core.basicInformation.activeCaptchasV2.googleReCaptchaV2.config.siteKey'),
  4.         invisible: config('core.basicInformation.activeCaptchasV2.googleReCaptchaV2.config.invisible')
  5.     } %}
  6.     <div class="captcha-google-re-captcha-v2"
  7.          data-google-re-captcha-v2="true"
  8.          data-google-re-captcha-v2-options="{{ googleReCaptchaV2Options|json_encode }}">
  9.         <input
  10.             type="text"
  11.             class="d-none grecaptcha-v2-input"
  12.             name="{{ constant('Shopware\\Storefront\\Framework\\Captcha\\GoogleReCaptchaV2::CAPTCHA_REQUEST_PARAMETER') }}"
  13.             data-skip-report-validity="true"
  14.             required>
  15.         <div class="grecaptcha-v2-container"></div>
  16.         {% if googleReCaptchaV2Options.invisible %}
  17.             {% set recaptchaV3Active = config('core.basicInformation.activeCaptchasV2.googleReCaptchaV3.isActive') %}
  18.             {% if not recaptchaV3Active %}
  19.                 <div class="data-protection-information grecaptcha-protection-information">
  20.                     {{ "captcha.googleReCaptcha.dataProtectionInformation"|trans|sw_sanitize }}
  21.                 </div>
  22.             {% endif %}
  23.         {% endif %}
  24.     </div>
  25. {% endblock %}