From 2511934d7259bd9f377ec9585bcf285a46c4de17 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 25 Mar 2020 13:53:20 -0500 Subject: Added fix for issue when creating collections (related to hmac import change) --- wqflask/wqflask/collect.py | 4 ++-- 1 file 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 -- cgit v1.2.3