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

Open in your IDE?
  1. {% block component_head_javascript_recaptcha %}
  2.     {% set recaptchaV2Active = config('core.basicInformation.activeCaptchasV2.googleReCaptchaV2.isActive') %}
  3.     {% set recaptchaV3Active = config('core.basicInformation.activeCaptchasV2.googleReCaptchaV3.isActive') %}
  4.     {% if recaptchaV2Active or recaptchaV3Active %}
  5.         <script type="text/javascript" src='https://www.google.com/recaptcha/api.js{% if recaptchaV3Active %}?render={{ config('core.basicInformation.activeCaptchasV2.googleReCaptchaV3.config.siteKey') }}{% endif %}' defer></script>
  6.         <script>
  7.             {% if recaptchaV2Active %}
  8.                 window.googleReCaptchaV2Active = true;
  9.             {% endif %}
  10.             {% if recaptchaV3Active %}
  11.                 window.googleReCaptchaV3Active = true;
  12.             {% endif %}
  13.         </script>
  14.     {% endif %}
  15. {% endblock %}