summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-10-03 14:32:47 -0300
committerTomás Touceda <chiiph@leap.se>2013-10-03 15:16:27 -0300
commitb6d7ffdb354ad4727f6a4dd158d439a2e768d68c (patch)
tree95611e5f89f81495ca3f69b2323a2b650ada98e3 /src/leap/bitmask
parent5e418935bdc5c64bc1cef8d5f440dc79cc6e2892 (diff)
Reset the session on every login attempt
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 42262610..cbff4b49 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -508,6 +508,8 @@ class SRPAuth(QtCore.QObject):
self._username = username
self._password = password
+ self._session = self._fetcher.session()
+
d = threads.deferToThread(self._authentication_preprocessing,
username=username,
password=password)