diff options
author | BonfaceKilz | 2020-10-29 16:12:13 +0300 |
---|---|---|
committer | GitHub | 2020-10-29 16:12:13 +0300 |
commit | 6e6911b466c2727b16a190d8b714f55d7842d7e2 (patch) | |
tree | bc395eceb7a58002286c9275d40d21a8c885d2be /wqflask/utility/hmac.py | |
parent | f3e01550a63238688a12152ab560db6d02e09a82 (diff) | |
parent | ca22bbfdd36351e2b7d8f346b5a3ab81c94f7203 (diff) | |
download | genenetwork2-6e6911b466c2727b16a190d8b714f55d7842d7e2.tar.gz |
Merge pull request #469 from BonfaceKilz/bug/fix-cookies-verification
Bug/Fix cookie verification bug
Diffstat (limited to 'wqflask/utility/hmac.py')
-rw-r--r-- | wqflask/utility/hmac.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/hmac.py b/wqflask/utility/hmac.py index 6623f69a..29891677 100644 --- a/wqflask/utility/hmac.py +++ b/wqflask/utility/hmac.py @@ -10,7 +10,7 @@ def hmac_creation(stringy): """Helper function to create the actual hmac""" secret = app.config['SECRET_HMAC_CODE'] - hmaced = hmac.new(bytearray(secret, "utf-8"), + hmaced = hmac.new(bytearray(secret, "latin-1"), bytearray(stringy, "utf-8"), hashlib.sha1) hm = hmaced.hexdigest() |