Reaction M9: Handy per Einmal-Code koppeln (Server)
Neuer Weg zum Anlegen/Zurueckziehen eines QR-Codes (hinter den Saal- Schranken) und zum Einloesen ohne Sitzung (/workspace/api/koppeln, in index.js direkt hinter der Anmeldung). 32 Zufallsbytes, nur SHA-256 in reaktion_kopplungen, 2 Minuten, einmal (atomar), an Person und Adresse gebunden, nicht im Agentur-Haus, Origin Pflicht, dieselbe Bremse und derselbe Keks wie die Anmeldung, Protokoll, Aufraeumen nach 1 Tag. Seiten fernbedienung.html/koppeln.html in Rechtetafel und Adresse. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -727,6 +727,20 @@ export function reaktionTabellen(d) {
|
||||
PRIMARY KEY (umfrage_id, person_id)
|
||||
);
|
||||
|
||||
/* DIE KOPPLUNG DES HANDYS (04.11.2026, Neuplan M9): ein Einmal-Code,
|
||||
2 Minuten gültig, an Person und Adresse gebunden. Gespeichert wird
|
||||
nur der SHA-256 des Codes, nie der Code selbst
|
||||
(workspace-fernbedienung.js). Nach einem Tag weg. */
|
||||
CREATE TABLE IF NOT EXISTS reaktion_kopplungen (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
code_hash TEXT NOT NULL UNIQUE,
|
||||
person_id INTEGER NOT NULL REFERENCES personen(id) ON DELETE CASCADE,
|
||||
adresse TEXT NOT NULL,
|
||||
erstellt TEXT NOT NULL,
|
||||
gilt_bis TEXT NOT NULL,
|
||||
eingeloest_am TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS reaktion_vorschlag_stimmen (
|
||||
vorschlag_id INTEGER NOT NULL REFERENCES reaktion_vorschlaege(id) ON DELETE CASCADE,
|
||||
person_id INTEGER NOT NULL REFERENCES personen(id) ON DELETE CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user