mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:09:22 -05:00
This api now no longer returns an array
This commit is contained in:
parent
80b4119279
commit
1fae1b3166
@ -159,7 +159,7 @@ class AuthHandler(BaseHandler):
|
|||||||
logger.warn("Attempted to login as %s but they do not exist", user)
|
logger.warn("Attempted to login as %s but they do not exist", user)
|
||||||
raise LoginError(401, "", errcode=Codes.UNAUTHORIZED)
|
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):
|
if bcrypt.checkpw(password, stored_hash):
|
||||||
defer.returnValue(user)
|
defer.returnValue(user)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user