summaryrefslogtreecommitdiff
path: root/src/leap/base/auth.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-24 01:57:28 +0900
committerkali <kali@leap.se>2013-01-24 01:57:28 +0900
commit407b030bb7d27b797fb27254710a358c9c69f8be (patch)
treeeb600cb7c6cfe33c4f991fb0929e017a0882dd93 /src/leap/base/auth.py
parent8226d6032b6db0c15ff70e377f87f4acfdd21787 (diff)
catch missing messages on last page of wizard
Diffstat (limited to 'src/leap/base/auth.py')
-rw-r--r--src/leap/base/auth.py7
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: