From a031d5ce2fd447d0ba88a95134827f936201b03b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 22 Sep 2016 19:29:30 +0200 Subject: [bug] write the right json in the bitmask_tokens The json for the tokens file needs to have the format: {'mail_auth': token} - Related: #8464 --- src/leap/bitmask/core/mail_services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index c59ef0d..a3cf692 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -526,8 +526,9 @@ class StandardMailService(service.MultiService, HookableService): tokens_path = os.path.join(tokens_folder, "%s.json" % (userid,)) + token_dict = {'mail_auth': self._service_tokens[userid]} with open(tokens_path, 'w') as ftokens: - json.dump(self._service_tokens, ftokens) + json.dump(token_dict, ftokens) class IMAPService(service.Service): -- cgit v1.2.3