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-08-16 13:48:53 +01:00
parent fca4a1194e
commit 4650db4b40
15 changed files with 427 additions and 91 deletions
+4
View File
@@ -23,6 +23,10 @@ ATTEMPT_SLACK_MS = int(os.environ.get("ATTEMPT_SLACK_MS", "8000"))
# once presence is proven, how long the voter has to type an access code
CODE_ENTRY_TTL_S = 180
# codes needed to confirm each vote, 0 turns the check off
DEFAULT_VOTE_SCANS = 3
MAX_VOTE_SCANS = 5
MIN_INTERVAL_MS = 300
MAX_INTERVAL_MS = 5000
MIN_SCANS = 2