hash is a reserved symbol name (#282)

This commit is contained in:
Thijs Triemstra
2019-12-10 22:10:54 +01:00
committed by Andrew Svetlov
parent 8dfe89594a
commit 9f9ca363c9
2 changed files with 3 additions and 3 deletions

View File

@@ -57,6 +57,6 @@ async def check_credentials(db_engine, username, password):
ret = await conn.execute(query)
user = await ret.fetchone()
if user is not None:
hash = user[2]
return sha256_crypt.verify(password, hash)
hashed = user[2]
return sha256_crypt.verify(password, hashed)
return False