Commit graph

8 commits

Author SHA1 Message Date
Bradley M. Kuhn
2e24b827c3 Revert: "Correct variable name" from 2014-02-09
During patch review by Tobias Mueller <muelli@cryptobitch.de>, Tobias
pointed out that the original commit referenced above seemed to make a
change that was inappropriate.  I reread my commit message and cannot
figure out why I made that change, at least, it doesn't make sense for
the reason I described, and Tobias is right that the escaped version
should be used here.

I've therefore corrected the problem and will test to see if any ill
effects occur.
2015-05-14 15:38:11 -07:00
Bradley M. Kuhn
61d0c39379 Assure $anon_token_id is integer.
The code that currently calls this only ever passes in a value that was
returned by elec_verify_voted_token() and as such no security issue
existed here.

However, assuming this function might be used for someone else in
future, we might as well case the value back to integer "just in case".

HT Tobias Mueller <muelli@cryptobitch.de> who pointed this out.
2015-05-14 15:25:28 -07:00
Bradley M. Kuhn
f5872caf9d Choice lookup needs to happen here by the info we have,
which is anon_token_id.
This adds the functions and code necessary to do that.
This is probably a bit of a hack.
2014-02-09 19:04:33 -05:00
Bradley M. Kuhn
4e29b1d107 Correct variable name;
I suspect that a previous bad cut and paste caused this.
2014-02-09 18:46:54 -05:00
Bradley M. Kuhn
80c0efa2d9 Create a verification page,
so that voters can see how they voted online before the election actually
ends.
2014-02-09 17:24:32 -05:00
Bradley M. Kuhn
dce402d2ad Create election_voters table & adapt code to use it instead of foundationmembers.
foundationmembers was a table specific to the GNOME Foundation.  This new
table, election_voters, allows creation of an electorate based on a list.

README is updated to explain how to use this table.
2013-12-18 18:53:50 -05:00
Bradley M. Kuhn
f3fab42403 Make variables for name of committee running election and its email address.
GNOME's Election committee was previously hard-code here, but the code is
more reusable if it is no longer hard-coded.  The variables still default to
GNOME's details, but can be overridden with the configuration file.
2013-12-18 17:26:15 -05:00
Bradley M. Kuhn
8dde472f6c foundation.gnome.org not needed in this case, as only using this for voting. 2013-12-17 13:14:33 -05:00
Renamed from foundation.gnome.org/vote/include/election-sql.php (Browse further)