diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-07-04 18:24:47 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-07-05 16:12:15 -0300 |
commit | af009064f8affdbcd060ec5c7e7087658f3ff2f9 (patch) | |
tree | 8850104e645712be605706808e72dc4d415cc48f /src/leap | |
parent | 32855d1dba7e5fd75f058dfb90c29f462525247f (diff) |
Raise SRPAuthenticationError when errcode != 422 too
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/crypto/srpauth.py | 3 |
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) |