hash is a reserved symbol name (#282)

This commit is contained in:
Thijs Triemstra authored and Andrew Svetlov committed 2019-12-10 23:10:54 +02:00
1 parent 8dfe89594a
commit 9f9ca363c9
2 files changed
+3 -3

No files matched your search

+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