diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-09-02 14:49:35 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-09-08 14:09:23 -0300 |
commit | 33901d27dafeb10b1eceafaf2ff2fbe3c76597ee (patch) | |
tree | 8bb18357773cc6dedbc37a8ecbd826d76d41acff /service | |
parent | daad7d6138c8c6d0859df9155eea4cd04cde7fbf (diff) |
Only send public key if a new key was generated
We were always sending the public key to nicknym, even if it was
already there. The send_key method purpose is to update the public
key in case a new pair is created and shouldn't be done at every
login
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/bitmask_libraries/keymanager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/bitmask_libraries/keymanager.py b/service/pixelated/bitmask_libraries/keymanager.py index f73daee4..0ab91184 100644 --- a/service/pixelated/bitmask_libraries/keymanager.py +++ b/service/pixelated/bitmask_libraries/keymanager.py @@ -39,7 +39,7 @@ class Keymanager(object): if not key_present: logger.info("Generating keys - this could take a while...") yield self._gen_key() - yield self._send_key_to_leap() + yield self._send_key_to_leap() @defer.inlineCallbacks def _key_exists(self, email): |