Visitor sign in kiosk: multi-site, badge printing, WWCC expiry warnings, admin accounts with 2FA

This commit is contained in:
2026-09-02 16:45:48 +10:00
parent ff9f51eaf9
commit 8c97c314e0
11 changed files with 211 additions and 247 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ router.post('/signin', signInLimiter, (req, res) => {
);
const visit = db.prepare('SELECT * FROM visits WHERE id = ?').get(info.lastInsertRowid);
mirror(visit, 'SIGN IN');
mirror();
delete req.session.frequentVisitorId;
// Lets this kiosk session fetch the badge for the visit it just created.
@@ -300,7 +300,7 @@ router.post('/signout', signInLimiter, (req, res) => {
'visitor',
visit.id
);
mirror(db.prepare('SELECT * FROM visits WHERE id = ?').get(visit.id), 'SIGN OUT');
mirror();
res.json({ ok: true, firstName: visit.first_name, signedOutAt });
});