Browse Source

- Increased number of failed authentication attempts to 5 in Web UI

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
1b0d86220f
  1. 2
      src/httpconnection.cpp

2
src/httpconnection.cpp

@ -131,7 +131,7 @@ QString HttpConnection::translateDocument(QString data) { @@ -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();

Loading…
Cancel
Save