From d3523ec710d000b17440071e12819b38ee345123 Mon Sep 17 00:00:00 2001 From: Olivier Legat Date: Thu, 1 Dec 2022 09:51:59 +0100 Subject: [PATCH 1/2] usage de recaptcha V3 vanilla --- content/themes/regalette/footer.php | 2 +- .../themes/regalette/template-contacts.php | 53 ++++++++++--------- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/content/themes/regalette/footer.php b/content/themes/regalette/footer.php index 55fc0b4..f21b3ee 100644 --- a/content/themes/regalette/footer.php +++ b/content/themes/regalette/footer.php @@ -184,7 +184,7 @@ (function(d, t) { let g = d.createElement(t), s = d.getElementsByTagName(t)[0]; - g.src = 'https://www.google.com/recaptcha/api.js?render='; + g.src = 'https://www.google.com/recaptcha/api.js?render='; s.parentNode.insertBefore(g, s) }(document, 'script')); } diff --git a/content/themes/regalette/template-contacts.php b/content/themes/regalette/template-contacts.php index d647a59..6380e30 100644 --- a/content/themes/regalette/template-contacts.php +++ b/content/themes/regalette/template-contacts.php @@ -318,35 +318,40 @@ if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST' & From 11cc1a506b3e89f5ba09059c279153c68cc36919 Mon Sep 17 00:00:00 2001 From: Olivier Legat Date: Fri, 2 Dec 2022 16:22:55 +0100 Subject: [PATCH 2/2] retour review - 1 --- .../themes/regalette/template-contacts.php | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/content/themes/regalette/template-contacts.php b/content/themes/regalette/template-contacts.php index 6380e30..9671594 100644 --- a/content/themes/regalette/template-contacts.php +++ b/content/themes/regalette/template-contacts.php @@ -319,23 +319,28 @@ if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST' &