mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
- Add ability to communicate with Tor control port and close circuits. Can be called from lua or as a http-request lua... call to do it based off an ACL. close #16
- Make POW checked before captcha in POST handler, since they both must be submittedin captcha mode, we don't want to send POST to /siteverify if they didnt even solve the POW Other: - Change (improve) split util to leave empty table entries for repeated delimiters - Minor frontend script bugfix so error messages display properly in captcha mode - Wrap submit button of noscript pow form to next line
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
function insertError(str) {
|
||||
const ring = document.querySelector('.lds-ring');
|
||||
ring.insertAdjacentHTML('afterend', `<p class="red">Error: ${str}</p>`);
|
||||
ring.remove();
|
||||
const captcha = document.querySelector('#captcha');
|
||||
(ring || captcha).insertAdjacentHTML('afterend', `<p class="red">Error: ${str}</p>`);
|
||||
ring && ring.remove();
|
||||
captcha && captcha.remove();
|
||||
}
|
||||
|
||||
function finishRedirect() {
|
||||
|
Reference in New Issue
Block a user