After failed login wait a second to slow down brute-force attacks (#1490549)

pull/299/merge
Aleksander Machniak 9 years ago
parent fddfd8e6d7
commit c1bbf0d0b6

@ -596,6 +596,8 @@ class rcmail extends rcube
// try to log in
if (!$storage->connect($host, $username, $pass, $port, $ssl)) {
// Wait a second to slow down brute-force attacks (#1490549)
sleep(1);
return false;
}

Loading…
Cancel
Save