diff options
author | Steven Hammerton <steven.hammerton@openmarket.com> | 2015-10-09 11:05:02 +0100 |
---|---|---|
committer | Steven Hammerton <steven.hammerton@openmarket.com> | 2015-10-10 10:54:19 +0100 |
commit | 95f7661170c842966e14b0a274347e73b90f1134 (patch) | |
tree | ff02cde7b776bf05794bd7671007956606274382 /synapse | |
parent | Fix my broken line splitting (diff) | |
download | synapse-95f7661170c842966e14b0a274347e73b90f1134.tar.xz |
Raise LoginError if CasResponse doensn't contain user
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/client/v1/login.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py index 1bd93526ad..a99dcaab6f 100644 --- a/synapse/rest/client/v1/login.py +++ b/synapse/rest/client/v1/login.py @@ -157,7 +157,7 @@ class LoginRestServlet(ClientV1RestServlet): "home_server": self.hs.hostname, } - defer.returnValue((200, result)) + defer.returnValue((200, result)) raise LoginError(401, "Invalid CAS response", errcode=Codes.UNAUTHORIZED) |