diff options
author | David Baker <dave@matrix.org> | 2015-05-01 13:25:39 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-05-01 13:26:41 +0100 |
commit | 1fae1b31661fcd5931f0f469f562997733dc9c5f (patch) | |
tree | fe3ec0f611b657a72346a83151ca1f809a3fb4f6 /synapse/handlers/auth.py | |
parent | Don't wait for storage of access_token (diff) | |
download | synapse-1fae1b31661fcd5931f0f469f562997733dc9c5f.tar.xz |
This api now no longer returns an array
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 2 |
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: |