We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27ae3d1 commit f652b3eCopy full SHA for f652b3e
1 file changed
includes/protect-wp-login.php
@@ -24,6 +24,7 @@
24
}
25
requestAnimationFrame(() => {
26
button.classList.add('waiting-animate');
27
+ button.disabled = true;
28
});
29
30
window.setTimeout(() => {
@@ -33,6 +34,7 @@
33
34
input.value = '1';
35
document.querySelector('#loginform').prepend(input);
36
button.classList.remove('waiting-animate');
37
+ button.disabled = false;
38
}, 2500);
39
})
40
@@ -46,7 +48,8 @@
46
48
47
49
$js_timeout_check = ($_POST['login-ok'] ?? '') === '1';
50
$csrf_check = parse_url($_SERVER['HTTP_ORIGIN'] ?? '', PHP_URL_HOST) === parse_url(home_url(), PHP_URL_HOST);
51
+
52
if (!$js_timeout_check || ! $csrf_check) {
- $password = 'invalid';
53
+ wp_die("Sorry, we are unable to process your login request as we think you are a bot. Please try again if you're not.");
54
55
}, 10, 2);
0 commit comments