summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/dispatcher.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-07-18 19:15:38 +0200
committerKali Kaneko <kali@leap.se>2017-08-24 17:14:12 -0400
commit00a9de84771b27e62515ce6d878d182c8f053de5 (patch)
treefbfda5c86a70ed0f902f4d85603d07e51e1740c5 /src/leap/bitmask/core/dispatcher.py
parent8cebf955ad71975a20275a780a67b31099759e3a (diff)
[feat] remove active user from get_token
We need to update the UI to use the new API. - Resolves: #8974
Diffstat (limited to 'src/leap/bitmask/core/dispatcher.py')
-rw-r--r--src/leap/bitmask/core/dispatcher.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index 519ec9df..1e364ec1 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -264,8 +264,12 @@ class MailCmd(SubCommand):
@register_method('dict')
def do_GET_TOKEN(self, mail, *parts, **kw):
- d = mail.get_token()
- return d
+ try:
+ userid = parts[2]
+ except IndexError:
+ raise DispatchError(
+ 'wrong number of arguments: expected 1, got none')
+ return mail.get_token(userid)
@register_method('dict')
def do_MIXNET_STATUS(self, mail, *parts, **kw):