summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorPedro Algarvio <pedro@algarvio.me>2011-05-15 22:18:38 +0100
committerPedro Algarvio <pedro@algarvio.me>2011-05-15 22:18:38 +0100
commit0ba0e013b54c033227fbc2329e0b01acf7846218 (patch)
tree72ee1f35ed18e1c07ff5a73b828c5f08f17872ee /deluge/ui/client.py
parent552c898998f5ed9f8169eae6f3640106903f5429 (diff)
downloaddeluge-0ba0e013b54c033227fbc2329e0b01acf7846218.tar.gz
deluge-0ba0e013b54c033227fbc2329e0b01acf7846218.tar.bz2
deluge-0ba0e013b54c033227fbc2329e0b01acf7846218.zip
Force backwards incompatibility.
Force clients prior to 1.4 to fail authentication, this was we might reduce tickets like #1852.
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index e281a30ca..e2105f2df 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -46,7 +46,6 @@ import zlib
import deluge.common
from deluge import error
-from deluge.log import LOG as log
from deluge.event import known_events
if deluge.common.windows_check():
@@ -299,8 +298,6 @@ class DaemonSSLProxy(DaemonProxy):
:param host: str, the host to connect to
:param port: int, the listening port on the daemon
- :param username: str, the username to login as
- :param password: str, the password to login with
:returns: twisted.Deferred
@@ -451,7 +448,8 @@ class DaemonSSLProxy(DaemonProxy):
def authenticate(self, username, password):
log.debug("%s.authenticate: %s", self.__class__.__name__, username)
self.login_deferred = defer.Deferred()
- d = self.call("daemon.login", username, password)
+ d = self.call("daemon.login", username, password,
+ client_version=deluge.common.get_version())
d.addCallback(self.__on_login, username)
d.addErrback(self.__on_login_fail)
return self.login_deferred