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:
23
phpBB/adm/style/captcha_turnstile_acp_demo.html
Normal file
23
phpBB/adm/style/captcha_turnstile_acp_demo.html
Normal 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>
|
Reference in New Issue
Block a user