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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user