aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-03-25 13:53:20 -0500
committerzsloan2020-03-25 13:53:20 -0500
commit2511934d7259bd9f377ec9585bcf285a46c4de17 (patch)
treebf00ca182e1aeb7ad8c60caef1520c830ecc3b5c /wqflask
parentf97da31add711dcc0e75797b206821ca2d05c105 (diff)
downloadgenenetwork2-2511934d7259bd9f377ec9585bcf285a46c4de17.tar.gz
Added fix for issue when creating collections (related to hmac import change)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/collect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 2a94e63d..74eb869f 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -43,10 +43,10 @@ def process_traits(unprocessed_traits):
unprocessed_traits = unprocessed_traits.split(",")
traits = set()
for trait in unprocessed_traits:
- data, _separator, hmac = trait.rpartition(':')
+ data, _separator, the_hmac = trait.rpartition(':')
data = data.strip()
if g.user_session.logged_in:
- assert hmac == hmac.data_hmac(data), "Data tampering?"
+ assert the_hmac == hmac.hmac_creation(data), "Data tampering?"
traits.add(str(data))
return traits