Story 5.4: reCAPTCHA v3

This commit is contained in:
2026-02-04 21:17:02 +01:00
parent a4e0cb71e9
commit 267b6ff7fa
7 changed files with 153 additions and 30 deletions

View File

@@ -15,5 +15,11 @@ $currentYear = date('Y');
<!-- Scripts -->
<script src="/assets/js/main.js" defer></script>
<?php if (defined('RECAPTCHA_SITE_KEY') && RECAPTCHA_SITE_KEY): ?>
<script>
window.RECAPTCHA_SITE_KEY = '<?= htmlspecialchars(RECAPTCHA_SITE_KEY, ENT_QUOTES) ?>';
</script>
<script src="https://www.google.com/recaptcha/api.js?render=<?= htmlspecialchars(RECAPTCHA_SITE_KEY, ENT_QUOTES) ?>" async defer></script>
<?php endif; ?>
</body>
</html>
</html>