summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-05-01 13:25:39 +0100
committerDavid Baker <dave@matrix.org>2015-05-01 13:26:41 +0100
commit1fae1b31661fcd5931f0f469f562997733dc9c5f (patch)
treefe3ec0f611b657a72346a83151ca1f809a3fb4f6 /synapse/handlers/auth.py
parentDon't wait for storage of access_token (diff)
downloadsynapse-1fae1b31661fcd5931f0f469f562997733dc9c5f.tar.xz
This api now no longer returns an array
Diffstat (limited to '')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 2e8009d3c3..4e2e50345e 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -159,7 +159,7 @@ class AuthHandler(BaseHandler):
             logger.warn("Attempted to login as %s but they do not exist", user)
             raise LoginError(401, "", errcode=Codes.UNAUTHORIZED)
 
-        stored_hash = user_info[0]["password_hash"]
+        stored_hash = user_info["password_hash"]
         if bcrypt.checkpw(password, stored_hash):
             defer.returnValue(user)
         else: