summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-02-13 12:31:11 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-02-13 12:31:11 -0300
commit7cfe280436db6ef1eb89281c23c71163df0ecdfa (patch)
treee490cd2c7b941634163e77a1e0815bff4d2f8e1a /src/leap
parent75e564c7a98243d3b2ba6bea2478abe69a875855 (diff)
Preserve settings' uuid on logout.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 1fb7b774..b46f0ea6 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -600,7 +600,8 @@ class SRPAuth(QtCore.QObject):
QtCore.QMutexLocker(self._uuid_lock)
full_uid = "%s@%s" % (
self._username, self._provider_config.get_domain())
- self._settings.set_uuid(full_uid, uuid)
+ if uuid is not None: # avoid removing the uuid from settings
+ self._settings.set_uuid(full_uid, uuid)
self._uuid = uuid
def get_uuid(self):