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

This commit is contained in:
2026-09-03 14:43:03 +10:00
parent 8c97c314e0
commit e6731dbdfa
11 changed files with 169 additions and 31 deletions
+5
View File
@@ -10,6 +10,7 @@ const state = {
mode: 'guest',
firstName: '',
lastName: '',
company: '',
hostId: null,
hostName: '',
phone: '',
@@ -136,6 +137,7 @@ function resetState() {
mode: 'guest',
firstName: '',
lastName: '',
company: '',
hostId: null,
hostName: '',
phone: '',
@@ -338,6 +340,7 @@ function afterPhoto() {
function buildReview() {
const rows = [
['Name', `${state.firstName} ${state.lastName}`],
...(state.company ? [['From', state.company]] : []),
['Visiting', state.hostName],
['Mobile', state.phone || '—'],
['Email', state.email || '—'],
@@ -369,6 +372,7 @@ async function submitSignIn() {
frequentVisitorId: state.frequentVisitorId,
firstName: state.firstName,
lastName: state.lastName,
company: state.company,
hostId: state.hostId,
phone: state.phone,
email: state.email,
@@ -520,6 +524,7 @@ $('[data-next="guest-name"]').addEventListener('click', () => {
if (!last) return say('Enter your last name.');
state.firstName = first;
state.lastName = last;
state.company = $('#in-company').value.trim();
show('guest-host');
});