This is an automated email from the ASF dual-hosted git repository. gstein pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/steve.git
commit 5ad8bc857bf811217814d71bbead5bcf047d824f Author: Greg Stein <[email protected]> AuthorDate: Mon May 30 21:51:05 2022 -0500 TBD notes --- v3/steve/election.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v3/steve/election.py b/v3/steve/election.py index 0d606f3..d2c2125 100644 --- a/v3/steve/election.py +++ b/v3/steve/election.py @@ -167,6 +167,8 @@ class Election: "Add or update an issue designated by IID." assert self.is_editable() + ### validate TYPE + # If we ADD, then SALT will be NULL. If we UPDATE, then it will not # be touched (it should be NULL). self.c_add_issue.perform((iid, title, description, type, kv, None)) @@ -218,6 +220,8 @@ class Election: record = self.q_get_record.first_row((rid,)) issue = self.q_get_issue.first_row((iid,)) + ### validate VOTESTRING for ISSUE.TYPE voting + voter_token = crypto.gen_token(md.opened_key, rid, record.salt) #print('VOTER:', rid, record.salt, voter_token) issue_token = crypto.gen_token(md.opened_key, iid, issue.salt)
