520 Commits

Author SHA1 Message Date
David Ernst
9964ca21e3 unlock: Better error handling if election missing threshold_public_key 2024-07-18 18:33:59 +03:00
David Ernst
4acd05cff3 status: Fix loading-in new pending votes 2024-07-17 13:37:57 +03:00
David Ernst
f9a96293fe api/nap/stats: More simplification 2024-07-17 13:20:56 +03:00
David Ernst
b617a44f07 api/nap/stats: Simplify a tad 2024-07-17 13:17:23 +03:00
David Ernst
820d031683 api/nap/stats: Slight tweaks 2024-07-17 13:12:37 +03:00
David Ernst
2f184d976b /api/new-american-primary/stats 2024-07-17 13:02:50 +03:00
David Ernst
b39319a3c2 vote: Support optional submission_confirmation string 2024-07-17 11:47:31 +03:00
David Ernst
3703ee44ae status: Support 'Election Homepage' config 2024-07-17 10:40:37 +03:00
David Ernst
ee0f769958 status page: Specify num new pending votes to load, separate from new total votes 2024-07-17 10:07:26 +03:00
David Ernst
86e56f028c cleanup: Move stringifyEncryptedVote to only file using it 2024-07-17 08:28:29 +03:00
David Ernst
729c8a087f api/recent-elections: num_votes are now total, not just approved 2024-07-17 08:23:34 +03:00
David Ernst
2cf8a7415d election status: Include votes-pending 2024-07-17 07:42:30 +03:00
David Ernst
3eff35254e submit-vote: Pending-votes should also increment num_votes 2024-07-17 07:29:39 +03:00
David Ernst
62dd5d4dc1 api/new-american-primary/auth: stringify req.body before storing 2024-07-13 22:54:08 +03:00
David Ernst
4970cb095f Enable CORS for /new-american-primary/auth 2024-07-13 13:48:00 +03:00
David Ernst
0625b76d0e api/recent-elections: Add pending-votes count 2024-07-09 22:45:06 +03:00
David Ernst
845be97884 Add pass-protected /api/recent-elections dashboard 2024-07-08 18:12:26 +03:00
David Ernst
c00f1482fc Create /api/new-american-primary/auth endpoint 2024-07-07 18:06:15 +03:00
David Ernst
2cd789d530 /vote: if auth=link&embed, window.parent.postMessage({link_auth}) to embed 2024-07-07 17:10:46 +03:00
David Ernst
5d9a501afb create-election: voter_applications_allowed off by default 2024-07-07 14:49:51 +03:00
David Ernst
8881db61ef /admin/votes: Begin hooking ApproveVotes to WIP endpoint 2024-07-07 14:49:00 +03:00
David Ernst
b90db29bf0 admin: Begin showing votes-pending 2024-07-07 00:57:56 +03:00
David Ernst
f9e82e5583 Notify admin if verify-link-auth reported invalid 2024-07-07 00:26:33 +03:00
David Ernst
6da4eb3772 Remove Auth Check logic for Auth-then-vote 2024-07-06 18:27:13 +03:00
David Ernst
6fca6ae437 Remove Auth-then-Vote logic 2024-07-06 18:08:25 +03:00
David Ernst
b6510b9d2a Update verification-email & flow for link-auth 2024-07-06 17:40:36 +03:00
David Ernst
ce8a84a43b /submit-link-auth-info should update, not override existing data 2024-07-06 16:56:24 +03:00
David Ernst
cc3a9bddf0 Fix /submitted's reminder to validate email for link-auth 2024-07-06 16:54:17 +03:00
David Ernst
a837f1c7b6 /was-vote-invalidated shouldn't 500 if auth_token not found 2024-07-06 16:41:36 +03:00
David Ernst
1680344831 Endpoint to store auth info 2024-07-06 15:44:48 +03:00
David Ernst
1863b31e2f /submit-vote: visit_to_add_auth link should use same domain 2024-07-06 14:28:30 +03:00
David Ernst
c594bb2aed Link from /submit-vote for AirGappedVoter to add auth info 2024-07-05 22:29:16 +03:00
David Ernst
038d50d2cc /api/submit-vote: Store 'link' auth in db.votes-pending 2024-07-05 21:33:19 +03:00
David Ernst
054a1c1f12 GET /submit-vote: Fix emailed link to election status page 2024-07-05 00:51:41 +03:00
David Ernst
b1019803c4 submit-vote: JSON.parse(encrypted_vote) if string 2024-07-05 00:35:52 +03:00
David Ernst
e2ae76de47 AirGappedSubmission: Include working Submission link 2024-07-05 00:05:43 +03:00
David Ernst
22874ce482 verify-registration-email-code: Fix comment typo 2024-07-04 12:34:00 +03:00
David Ernst
2b119577fa Cleanup verify-registration-email-code 2024-07-04 11:14:02 +03:00
David Ernst
0cc58ab1ce verify-registration-email-code: Notify admin on bad code 2024-07-04 11:04:31 +03:00
David Ernst
c7a560809e Shorter confirmation msg after submitting vote application 2024-07-04 10:56:49 +03:00
David Ernst
cda69f1e4c Merge branch 'main' into registration-link 2024-07-04 09:56:54 +03:00
David Ernst
783a34642f add api/ukraine-updates-subscribe 2024-05-21 16:29:53 -07:00
David Ernst
31ef41798c new conventions num_voters -> num_qrs: 0 2024-04-26 17:32:36 -07:00
David Ernst
953d082473 Ability to preview ballot design 2024-04-26 17:08:57 -07:00
David Ernst
5ea0bd838a convention admin: Fill in SetRedirect data for Voters, Votes, and Finalized 2024-04-25 18:26:13 -07:00
David Ernst
c11be631e3 convention: Make sure new ballot auths are sorted asc 2024-04-23 17:32:27 -07:00
David Ernst
8a54e857c2 convention: Add 'qr' to generated email addresses 2024-04-22 17:33:09 -07:00
David Ernst
37fc1d60ba Improve look & functionality of Convention QR Redirection page 2024-04-22 17:15:43 -07:00
David Ernst
2a5a260407 convention: When creating QRs, if redirect set, also create ballot auths 2024-04-22 15:48:37 -07:00
David Ernst
3120bba8a4 Use single source of truth for Qr_ID typing 2024-04-22 15:19:42 -07:00