Merge pull request #156 from lucmuller/master

Ajout d'un engagement pour Recaptcha
This commit is contained in:
Amauri CHAMPEAUX 2018-06-26 14:27:31 +02:00 committed by GitHub
commit 2991ba24bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1206,7 +1206,13 @@ tarteaucitron.services.recaptcha = {
"cookies": ['nid'],
"js": function () {
"use strict";
tarteaucitron.fallback(['g-recaptcha'], '');
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
},
"fallback": function () {
"use strict";
var id = 'recaptcha';
tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
}
};
@ -2159,4 +2165,3 @@ tarteaucitron.services.webmecanik = {
});
}
};