Browse Source

Add MTcaptcha

Amauri CHAMPEAUX 3 years ago
parent
commit
162efa9f20
1 changed files with 20 additions and 0 deletions
  1. 20 0
      tarteaucitron.services.js

+ 20 - 0
tarteaucitron.services.js

@@ -4952,3 +4952,23 @@ tarteaucitron.services.m6meteo = {
     }
 };
 
+// mtcaptcha
+tarteaucitron.services.mtcaptcha = {
+    "key": "mtcaptcha",
+    "type": "api",
+    "name": "MTcaptcha",
+    "uri": "https://www.mtcaptcha.com",
+    "readmoreLink": "https://www.mtcaptcha.com/faq-cookie-declaration",
+    "needConsent": true,
+    "cookies": ['mtv1Pulse','mtv1ConfSum','mtv1Pong'],
+
+    "js": function () {
+
+        window.mtcaptchaConfig = {
+            "sitekey": tarteaucitron.user.mtcaptchaSitekey
+        };
+
+        tarteaucitron.addScript('https://service.mtcaptcha.com/mtcv1/client/mtcaptcha.min.js');
+        tarteaucitron.addScript('https://service2.mtcaptcha.com/mtcv1/client/mtcaptcha2.min.js');
+    }
+};