Vote-time presence scan, rescue codes, websocket heartbeat

Each vote can require N fresh codes read off the projector (default 3,
off for rooms without a projector); voters enrolled with a paper or
rescue code are exempt. Rescue codes enroll a phone without camera.
Projector keeps the QR up while such a vote is open. Server pings every
socket every 25s so proxies keep them open. Composer no longer closes on
enter. Schema migrates existing databases.
This commit is contained in:
2026-11-16 13:48:53 +01:00
parent e328a0983f
commit b2b598d236
15 changed files with 427 additions and 91 deletions
+1
View File
@@ -25,6 +25,7 @@ $("#form").addEventListener("submit", async (e) => {
expected: $("#expected").value ? +$("#expected").value : null,
max_voters: $("#maxv").value ? +$("#maxv").value : null,
require_code: $("#codes-on").checked,
vote_scans: $("#vote-scans-on").checked ? 3 : 0,
codes: $("#codes-on").checked ? +$("#codes").value : 0,
password: $("#pw").value || undefined,
});