summaryrefslogtreecommitdiff
path: root/bonafide/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-11-24 23:27:29 -0400
committerKali Kaneko <kali@leap.se>2015-11-24 23:27:29 -0400
commit25e255a55b63ca2ab11526b8e4002a489e3c7ed9 (patch)
tree0ebbd3693abaf10c28fc4d2e9eb6e043eb0db413 /bonafide/src
parent3a90c55b82034cada54613c46b5fc491085180a9 (diff)
return token and uuid
Diffstat (limited to 'bonafide/src')
-rw-r--r--bonafide/src/leap/bonafide/_protocol.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bonafide/src/leap/bonafide/_protocol.py b/bonafide/src/leap/bonafide/_protocol.py
index 6a1c3d2..617c93c 100644
--- a/bonafide/src/leap/bonafide/_protocol.py
+++ b/bonafide/src/leap/bonafide/_protocol.py
@@ -88,14 +88,14 @@ class BonafideProtocol(object):
return d
def do_authenticate(self, full_id, password):
- def return_token(result, _session):
+ def return_token_and_uuid(result, _session):
if result == OK:
- return str(_session.token)
+ return str(_session.token), str(_session.uuid)
log.msg('AUTH for %s' % full_id)
session = self._get_session(full_id, password)
d = session.authenticate()
- d.addCallback(return_token, session)
+ d.addCallback(return_token_and_uuid, session)
return d
def do_logout(self, full_id, password):