diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-10-03 14:32:47 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-10-03 15:16:27 -0300 |
commit | b6d7ffdb354ad4727f6a4dd158d439a2e768d68c (patch) | |
tree | 95611e5f89f81495ca3f69b2323a2b650ada98e3 | |
parent | 5e418935bdc5c64bc1cef8d5f440dc79cc6e2892 (diff) |
Reset the session on every login attempt
-rw-r--r-- | changes/better_support_login_multiple_providers | 3 | ||||
-rw-r--r-- | src/leap/bitmask/crypto/srpauth.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/better_support_login_multiple_providers b/changes/better_support_login_multiple_providers index c31d5931..149471d9 100644 --- a/changes/better_support_login_multiple_providers +++ b/changes/better_support_login_multiple_providers @@ -1,2 +1,3 @@ o Fixes a bug where you cannot login to a different provider once - you logged in to another one.
\ No newline at end of file + you logged in to another one. Fixes #3695. + o Also resets the session for every login attempt. Related to #3695.
\ No newline at end of file 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) |