diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-25 17:15:20 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-25 17:15:20 +0000 |
commit | 0e8f5095c7e7075b249ad53a9f60a4d2fdeeaaed (patch) | |
tree | 39bdcca49ae0eabf09b3a98e2c4b810e0c68692f /synapse/handlers/login.py | |
parent | Escape non printing ascii character (diff) | |
download | synapse-0e8f5095c7e7075b249ad53a9f60a4d2fdeeaaed.tar.xz |
Fix unicode database support
Diffstat (limited to 'synapse/handlers/login.py')
-rw-r--r-- | synapse/handlers/login.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/login.py b/synapse/handlers/login.py index 7447800460..76647c7941 100644 --- a/synapse/handlers/login.py +++ b/synapse/handlers/login.py @@ -57,7 +57,7 @@ class LoginHandler(BaseHandler): logger.warn("Attempted to login as %s but they do not exist", user) raise LoginError(403, "", errcode=Codes.FORBIDDEN) - stored_hash = user_info[0]["password_hash"] + stored_hash = user_info["password_hash"] if bcrypt.checkpw(password, stored_hash): # generate an access token and store it. token = self.reg_handler._generate_token(user) |