From e362b36a598d00ebd50f57df79d04741937d0a3d Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 25 Jan 2013 01:12:34 +0000 Subject: [PATCH] WebUI: Add failed login log message with IP address for fail2ban --- deluge/ui/web/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py index 5cd345e2c..e26eab486 100644 --- a/deluge/ui/web/auth.py +++ b/deluge/ui/web/auth.py @@ -322,4 +322,5 @@ class Auth(JSONComponent): if self.check_password(password): return self._create_session(__request__) else: + log.error('Login failed (ClientIP %s)', __request__.getClientIP()) return False