Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-11-11 20:53:43 +0300
committerAleksander Machniak <alec@alec.pl>2015-11-11 20:53:43 +0300
commita15d877ba8e12ba6659aad69d63b8b73256144ad (patch)
tree26d8f2f5a0fe9df67d142eed9d67b1e55fa493f0 /index.php
parent7caa9f5f505f97565cdac3f82a0b7d3d6df80a46 (diff)
Added brute-force attack prevention via login rate limit (#1490566)
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1ebbdca25..9dcf773fd 100644
--- a/index.php
+++ b/index.php
@@ -155,6 +155,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') {
RCMAIL::ERROR_COOKIES_DISABLED => 'cookiesdisabled',
RCMAIL::ERROR_INVALID_REQUEST => 'invalidrequest',
RCMAIL::ERROR_INVALID_HOST => 'invalidhost',
+ RCMAIL::ERROR_RATE_LIMIT => 'accountlocked',
);
$error_message = !empty($auth['error']) && !is_numeric($auth['error']) ? $auth['error'] : ($error_labels[$error_code] ?: 'loginfailed');