From 7265421cbbb8e903766ffd24c5804302211e7da9 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 9 Sep 2016 11:31:55 -0400 Subject: [bug] workaround for autoconf in cli --- src/leap/bitmask/core/dispatcher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask/core/dispatcher.py') diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 55b19600..f3393a59 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -101,7 +101,8 @@ class UserCmd(SubCommand): user, password = parts[2], parts[3] autoconf = False if len(parts) > 4: - autoconf = parts[4] + if parts[4] == 'true': + autoconf = True return bonafide.do_authenticate(user, password, autoconf) @register_method("{'signup': 'ok', 'user': str}") @@ -109,7 +110,8 @@ class UserCmd(SubCommand): user, password = parts[2], parts[3] autoconf = False if len(parts) > 4: - autoconf = parts[4] + if parts[4] == 'true': + autoconf = True return bonafide.do_signup(user, password, autoconf) @register_method("{'logout': 'ok'}") -- cgit v1.2.3