hash is a reserved symbol name (#282)
This commit is contained in:
parent
8dfe89594a
commit
9f9ca363c9
|
@ -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
|
||||
|
|
|
@ -53,7 +53,7 @@ Now you have two tables:
|
|||
+-----------------+
|
||||
| user_id |
|
||||
+-----------------+
|
||||
| permission_name |
|
||||
| perm_name |
|
||||
+-----------------+
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue