summaryrefslogtreecommitdiff
path: root/src/leap/crypto
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-06-25 15:55:23 -0300
committerTomás Touceda <chiiph@leap.se>2013-06-25 16:50:47 -0300
commit320909489ad8f5d14e190968098edcded51ee016 (patch)
tree7a71fede55c5e911c1f0a9da60d836c4944a26a2 /src/leap/crypto
parenta5a51bcc1573d7b7cf281a4d8ac142705bd227d0 (diff)
Properly return the error responseCode when login is already taken
Diffstat (limited to 'src/leap/crypto')
-rwxr-xr-xsrc/leap/crypto/tests/fake_provider.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/crypto/tests/fake_provider.py b/src/leap/crypto/tests/fake_provider.py
index 74a735ff..b943040a 100755
--- a/src/leap/crypto/tests/fake_provider.py
+++ b/src/leap/crypto/tests/fake_provider.py
@@ -139,6 +139,7 @@ class FakeUsers(Resource):
verifier = args['user[password_verifier]'][0]
if login in _USERDB:
+ request.setResponseCode(422)
return "%s\n" % json.dumps(
{'errors': {'login': 'already taken!'}})