summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-04 18:24:47 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-05 16:12:15 -0300
commitaf009064f8affdbcd060ec5c7e7087658f3ff2f9 (patch)
tree8850104e645712be605706808e72dc4d415cc48f /src/leap
parent32855d1dba7e5fd75f058dfb90c29f462525247f (diff)
Raise SRPAuthenticationError when errcode != 422 too
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/crypto/srpauth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index eee8e525..ad1afd4c 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -177,6 +177,9 @@ class SRPAuth(QtCore.QObject):
if init_session.status_code == 422:
raise SRPAuthenticationError(self.tr("Unknown user"))
+ raise SRPAuthenticationError(self.tr("There was a problem with"
+ " authentication"))
+
json_content = json.loads(content)
salt = json_content.get("salt", None)
B = json_content.get("B", None)