summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorSteven Hammerton <steven.hammerton@openmarket.com>2015-10-09 11:05:02 +0100
committerSteven Hammerton <steven.hammerton@openmarket.com>2015-10-10 10:54:19 +0100
commit95f7661170c842966e14b0a274347e73b90f1134 (patch)
treeff02cde7b776bf05794bd7671007956606274382 /synapse
parentFix my broken line splitting (diff)
downloadsynapse-95f7661170c842966e14b0a274347e73b90f1134.tar.xz
Raise LoginError if CasResponse doensn't contain user
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v1/login.py2
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)