Skip to content

Commit

Permalink
hash is a reserved symbol name (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra authored and asvetlov committed Dec 10, 2019
1 parent 8dfe895 commit 9f9ca36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demo/database_auth/db_auth.py
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/example_db_auth.rst
Expand Up @@ -53,7 +53,7 @@ Now you have two tables:
+-----------------+
| user_id |
+-----------------+
| permission_name |
| perm_name |
+-----------------+


Expand Down

0 comments on commit 9f9ca36

Please sign in to comment.