aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorBonfaceKilz2020-10-29 16:12:13 +0300
committerGitHub2020-10-29 16:12:13 +0300
commit6e6911b466c2727b16a190d8b714f55d7842d7e2 (patch)
treebc395eceb7a58002286c9275d40d21a8c885d2be /wqflask/utility
parentf3e01550a63238688a12152ab560db6d02e09a82 (diff)
parentca22bbfdd36351e2b7d8f346b5a3ab81c94f7203 (diff)
downloadgenenetwork2-6e6911b466c2727b16a190d8b714f55d7842d7e2.tar.gz
Merge pull request #469 from BonfaceKilz/bug/fix-cookies-verification
Bug/Fix cookie verification bug
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/hmac.py2
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()