diff options
author | kali <kali@leap.se> | 2013-01-24 02:39:34 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-24 02:39:34 +0900 |
commit | fea677bb0e3c9ec43353f644879636b9a63a3634 (patch) | |
tree | b53baf5046ed0bd996967bf5d332fb6f83de1f92 /src/leap/base | |
parent | 8226d6032b6db0c15ff70e377f87f4acfdd21787 (diff) | |
parent | ff59da55ef9a176b36cef19d67e7ec363bf5d739 (diff) |
Merge branch 'feature/fix-connect-page' into develop
Diffstat (limited to 'src/leap/base')
-rw-r--r-- | src/leap/base/auth.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/base/auth.py b/src/leap/base/auth.py index f629972f..c2d3f424 100644 --- a/src/leap/base/auth.py +++ b/src/leap/base/auth.py @@ -44,7 +44,7 @@ class LeapSRPRegister(object): schema="https", provider=None, verify=True, - register_path="1/users.json", + register_path="1/users", method="POST", fetcher=requests, srp=srp, @@ -113,9 +113,6 @@ class LeapSRPRegister(object): uri, data=user_data, timeout=SIGNUP_TIMEOUT, verify=self.verify) - logger.debug(req) - logger.debug('user_data: %s', user_data) - #logger.debug('response: %s', req.text) # we catch it in the form #req.raise_for_status() return (req.ok, req) @@ -159,7 +156,7 @@ class SRPAuth(requests.auth.AuthBase): def get_init_data(self): try: init_session = self.session.post( - self.server + '/1/sessions.json/', + self.server + '/1/sessions/', data=self.get_auth_data(), verify=self.verify) except requests.exceptions.ConnectionError: |