summaryrefslogtreecommitdiff
path: root/service/pixelated/bitmask_libraries/nicknym.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-06-09 16:05:45 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-06-09 16:05:45 -0300
commit7aafd4eb3d18f23beed012f1f2e6865a2da58b43 (patch)
tree4f3e68b94f70a9dc6a428781aa41641f301280ec /service/pixelated/bitmask_libraries/nicknym.py
parent3ed44327d7d658a58989e2ed5fb053465faffb26 (diff)
Removed triplicated code to concatenate user mail
Diffstat (limited to 'service/pixelated/bitmask_libraries/nicknym.py')
-rw-r--r--service/pixelated/bitmask_libraries/nicknym.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/bitmask_libraries/nicknym.py b/service/pixelated/bitmask_libraries/nicknym.py
index 8220d006..bb278cdc 100644
--- a/service/pixelated/bitmask_libraries/nicknym.py
+++ b/service/pixelated/bitmask_libraries/nicknym.py
@@ -18,10 +18,10 @@ from .certs import LeapCertificate
class NickNym(object):
- def __init__(self, provider, config, soledad_session, username, token, uuid):
+ def __init__(self, provider, config, soledad_session, email_address, token, uuid):
nicknym_url = _discover_nicknym_server(provider)
- self._email = '%s@%s' % (username, provider.domain)
- self.keymanager = KeyManager('%s@%s' % (username, provider.domain), nicknym_url,
+ self._email = email_address
+ self.keymanager = KeyManager(self._email, nicknym_url,
soledad_session.soledad,
token, LeapCertificate(provider).api_ca_bundle, provider.api_uri,
provider.api_version,