fixes #1622
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled

This commit is contained in:
jelveh
2025-09-27 00:03:49 -07:00
parent 891093fd2b
commit 740089aff1
+9 -4
View File
@@ -316,10 +316,14 @@ function UIWindowSignup(options){
$(el_window).find('.signup-btn').prop('disabled', false);
// Reset Turnstile widget for retry
if (window.turnstile) {
window.turnstile.reset('.cf-turnstile');
$(el_window).find('.cf-turnstile').removeAttr('data-token');
$(el_window).find('.cf-turnstile').removeClass('captcha-completed');
try{
if (window.turnstile) {
window.turnstile?.reset('.cf-turnstile');
$(el_window).find('.cf-turnstile').removeAttr('data-token');
$(el_window).find('.cf-turnstile').removeClass('captcha-completed');
}
}catch(e){
console.log(e);
}
// Process error response
@@ -344,6 +348,7 @@ function UIWindowSignup(options){
return;
}
} catch (e) {
console.log(e);
// Not JSON, continue with text analysis
}