diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-06-25 15:55:23 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-06-25 16:50:47 -0300 |
commit | 320909489ad8f5d14e190968098edcded51ee016 (patch) | |
tree | 7a71fede55c5e911c1f0a9da60d836c4944a26a2 /src | |
parent | a5a51bcc1573d7b7cf281a4d8ac142705bd227d0 (diff) |
Properly return the error responseCode when login is already taken
Diffstat (limited to 'src')
-rwxr-xr-x | src/leap/crypto/tests/fake_provider.py | 1 |
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!'}}) |