From bc451eb573407d3548a5ac865f844bd730f9a85f Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 25 May 2018 23:49:34 +0200 Subject: [PATCH] Add reCAPTCHA --- tarteaucitron.services.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ee91c55..f5f4e27 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -973,6 +973,20 @@ tarteaucitron.services.jsapi = { } }; +// recaptcha +tarteaucitron.services.recaptcha = { + "key": "recaptcha", + "type": "api", + "name": "reCAPTCHA", + "uri": "http://www.google.com/policies/privacy/", + "needConsent": true, + "cookies": ['nid'], + "js": function () { + "use strict"; + tarteaucitron.addScript('https://www.google.com/recaptcha/api.js'); + } +}; + // linkedin tarteaucitron.services.linkedin = { "key": "linkedin",