diff options
-rw-r--r-- | src/leap/bitmask/core/mail_services.py | 3 |
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): |