summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto/srpauth.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-10-03 13:45:11 -0300
committerTomás Touceda <chiiph@leap.se>2013-10-03 15:16:27 -0300
commit5e418935bdc5c64bc1cef8d5f440dc79cc6e2892 (patch)
tree9bbfd6bad4b3f53957c5235133222be3d5da03f6 /src/leap/bitmask/crypto/srpauth.py
parentd0371ad6b83c8c4e1fdbf2cf99bff317832f0062 (diff)
Update provider_config in SRPAuth initialization
Diffstat (limited to 'src/leap/bitmask/crypto/srpauth.py')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 90d9ea0a..42262610 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -603,6 +603,13 @@ class SRPAuth(QtCore.QObject):
# Store instance reference as the only member in the handle
self.__dict__['_SRPAuth__instance'] = SRPAuth.__instance
+ # Generally, we initialize this with a provider_config once,
+ # and after that initialize it without one and use the one
+ # that was assigned before. But we need to update it if we
+ # want to be able to logout and login into another provider.
+ if provider_config is not None:
+ SRPAuth.__instance._provider_config = provider_config
+
def authenticate(self, username, password):
"""
Executes the whole authentication process for a user