You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/21 00:58:52 UTC

svn commit: r1668180 - /steve/trunk/pytest/www/cgi-bin/rest_voter.py

Author: humbedooh
Date: Fri Mar 20 23:58:51 2015
New Revision: 1668180

URL: http://svn.apache.org/r1668180
Log:
let's just make that extra salty.

Modified:
    steve/trunk/pytest/www/cgi-bin/rest_voter.py

Modified: steve/trunk/pytest/www/cgi-bin/rest_voter.py
URL: http://svn.apache.org/viewvc/steve/trunk/pytest/www/cgi-bin/rest_voter.py?rev=1668180&r1=1668179&r2=1668180&view=diff
==============================================================================
--- steve/trunk/pytest/www/cgi-bin/rest_voter.py (original)
+++ steve/trunk/pytest/www/cgi-bin/rest_voter.py Fri Mar 20 23:58:51 2015
@@ -170,7 +170,7 @@ if pathinfo:
                             with open(issuepath + ".votes", "w") as f:
                                 f.write(json.dumps(votes))
                                 f.close()
-                            votehash = hashlib.sha224(basedata['hash'] + voterid + vote).hexdigest()
+                            votehash = hashlib.sha224(basedata['hash'] + voterid + vote + email).hexdigest()
                             voter.email(email, "Vote registered: %s (%s)" % (issue, issuedata['title']), "This is a receipt that your vote was registered for issue #%s:\n\nElection: %s (%s)\nIssue: %s (%s)\nVote cryptohash: %s" % (issue, basedata['title'], election, issuedata['title'], issue, votehash))
                             response.respond(200, {'message': 'Vote saved!'})