From 1b0d86220fa913974444380a0efb731bfa7afeb5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 17 Jan 2010 09:09:57 +0000 Subject: [PATCH] - Increased number of failed authentication attempts to 5 in Web UI --- src/httpconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index c578a1775..564b49c98 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -131,7 +131,7 @@ QString HttpConnection::translateDocument(QString data) { void HttpConnection::respond() { //qDebug("Respond called"); int nb_fail = parent->client_failed_attempts.value(socket->peerAddress().toString(), 0); - if(nb_fail > 2) { + if(nb_fail > 4) { generator.setStatusLine(403, "Forbidden"); generator.setMessage(tr("Your IP address has been banned after too many failed authentication attempts.")); write();