diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-09-05 10:49:00 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-09-05 10:49:00 -0300 |
commit | daad7d6138c8c6d0859df9155eea4cd04cde7fbf (patch) | |
tree | f37ee03097bda9d846e93de76efd90b17276a41b /service | |
parent | a5f1945915c5cac2bc1cf5d7ee8ae888db202ca8 (diff) |
Adapted register after latest changes
Register was trying to use LeapConfig and breaking
when trying to register users
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/register.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/service/pixelated/register.py b/service/pixelated/register.py index eaa80937..2aced672 100644 --- a/service/pixelated/register.py +++ b/service/pixelated/register.py @@ -51,13 +51,14 @@ def register( events_server.ensure_server() LeapCertificate.set_cert_and_fingerprint(provider_cert, provider_cert_fingerprint) - config = LeapConfig(leap_home=leap_home) provider = LeapProvider(server_name) - provider.setup_ca_bundle() + provider.setup_ca() + provider.download_settings() srp_auth = SRPAuth(provider.api_uri, provider.provider_api_cert) if srp_auth.register(username, password): - LeapSessionFactory(provider).create(username, password) + auth = srp_auth.authenticate(username, password) + LeapSessionFactory(provider).create(username, password, auth) else: logger.error("Register failed") |