Fix issues with register page and captcha on both login and register page

This commit is contained in:
Lncvrt committed 2025-03-03 16:40:02 -07:00
1 parent e63e596830
commit f33c3ec72c
4 files changed
+115 -105

No files matched your search

+1
View File
@@ -197,6 +197,7 @@ if (isset($_COOKIE['session'])) {
} else {
var response = JSON.parse(xhr.responseText);
alert(response.response + ' (' + xhr.status + ')');
document.querySelector('.cf-turnstile').innerHTML = '';
captcha_token = '';
turnstile.render('.cf-turnstile', {
sitekey: '<?= $captcha_sitekey ?>',