Add optional self-hosted ALTCHA protection and dependency maintenance

This commit is contained in:
parkel committed 2026-10-12 14:10:08 +02:00
1 parent 3b558409f3
commit 2a2f1d5878
59 files changed
+2648 -12

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
const hint=form.querySelector('.workflow-hint');hint.textContent=flow.hint;hint.hidden=!flow.hint;
}
form.querySelectorAll('[name="mlhc_mode"]').forEach(input=>input.addEventListener('change',update));update();
form.addEventListener('submit',()=>{const button=form.querySelector('[type="submit"]');button.disabled=true;button.textContent=form.dataset.hgcfSending;});
form.addEventListener('submit',event=>{const widget=form.querySelector('altcha-widget');if(widget&&!form.querySelector('input[name="mlhc_altcha"]')?.value){event.preventDefault();widget.focus();return;}if(event.defaultPrevented)return;const button=form.querySelector('[type="submit"]');button.disabled=true;button.textContent=form.dataset.hgcfSending;});
});
const errors=document.querySelector('.form-errors');if(errors)errors.focus();
})();