diff options
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 6 | ||||
-rw-r--r-- | src/leap/bitmask/core/mail_services.py | 4 |
2 files changed, 7 insertions, 3 deletions
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'}") diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index 72a3512c..79c1495e 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -134,7 +134,9 @@ class SoledadContainer(Container): def _get_provider_from_full_userid(userid): _, provider_id = config.get_username_and_provider(userid) - return config.Provider(provider_id) + # TODO -- this autoconf should be passed from the + # command flag. workaround to get cli workinf for now. + return config.Provider(provider_id, autoconf=True) def is_service_ready(service, provider): |