adjust banme

This commit is contained in:
HF 2022-09-22 23:54:39 +02:00
parent 89dcf00958
commit c1d5e437fc

View File

@ -23,13 +23,16 @@ const GlobalCaptcha = ({ close }) => {
<form <form
onSubmit={async (e) => { onSubmit={async (e) => {
e.preventDefault(); e.preventDefault();
const text = e.target.captcha.value;
if (!text || text.length < 4) {
return;
}
// ---- // ----
const test = document.getElementById('void-bot'); const test = document.getElementById('void-bot');
if (!legit || test) { if (!legit || test) {
await requestBanMe((legit) ? 1 : 2); await requestBanMe((legit) ? 1 : 2);
} }
// ---- // ----
const text = e.target.captcha.value;
const captchaid = e.target.captchaid.value; const captchaid = e.target.captchaid.value;
const { errors: resErrors } = await requestSolveCaptcha( const { errors: resErrors } = await requestSolveCaptcha(
text, text,