summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-09-22 19:29:30 +0200
committerRuben Pollan <meskio@sindominio.net>2016-09-22 22:51:51 +0200
commita031d5ce2fd447d0ba88a95134827f936201b03b (patch)
treef3eddb193584864edf27f3cf09c2fcaf0e3d9e8e /src/leap
parentfee5843860ef580c5ee98d84be685b2ab3a02cbf (diff)
[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
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/core/mail_services.py3
1 files changed, 2 insertions, 1 deletions
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):