hash is a reserved symbol name (#282)

This commit is contained in:
Thijs Triemstra
2019-12-10 23:10:54 +02:00
committed by Andrew Svetlov
parent 8dfe89594a
commit 9f9ca363c9
2 changed files with 3 additions and 3 deletions
+2 -2
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