summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2013-05-11 11:49:17 -0300
committerTomas Touceda <chiiph@leap.se>2013-05-11 11:49:17 -0300
commit8781a893aeaa62286633021e9d3eb8502bd129ee (patch)
treefc354865e9ef1118a27caaf56617eb4c6f904b41
parent425040062e3cfac01e1a627598ef7394596b0abc (diff)
Support requests<1.0.0 for the token saving too
-rw-r--r--src/leap/crypto/srpauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index dbaac01b..ce6c28f4 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -251,7 +251,7 @@ class SRPAuth(QtCore.QObject):
json_content = json.loads(content)
M2 = json_content.get("M2", None)
uid = json_content.get("id", None)
- token = auth_result.json().get("token", None)
+ token = json_content.get("token", None)
events_signal(proto.CLIENT_UID, content=uid)