1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[ticket/17413] Add migration for turnstile and acp demo

PHPBB-17413
This commit is contained in:
Marc Alexander
2024-10-12 20:36:12 +02:00
parent 52acd2709b
commit b55b42d09f
7 changed files with 146 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
<dl>
<dt><div id="captcha_turnstile"></div></dt>
</dl>
{% INCLUDEJS 'https://challenges.cloudflare.com/turnstile/v0/api.js' %}
<script>
function domReady(callBack) {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', callBack);
} else {
callBack();
}
}
domReady(() => {
/* global turnstile */
console.debug('_turnstileCb called');
turnstile.render('#captcha_turnstile', {
sitekey: '1x00000000000000000000AA',
theme: 'light',
});
});
</script>