diff --git a/public/admin.html b/public/admin.html index 1f07446..bece6ff 100644 --- a/public/admin.html +++ b/public/admin.html @@ -37,7 +37,7 @@
- +diff --git a/server.js b/server.js index 4e253c9..a66686d 100644 --- a/server.js +++ b/server.js @@ -93,7 +93,7 @@ function allowed(claims, req) { const s = ledger.settings(); const mode = String(process.env.DR_SIGNUPS || s.signups || 'testers'); if (mode === 'open') return true; if (mode === 'closed') return false; const list = (s.testers || []).map(x => String(x).trim().toLowerCase()).filter(Boolean); - if (list.includes(String(claims.email || '').toLowerCase()) || list.includes(String(claims.memberId))) return true; + if (list.includes(String(claims.email || '').toLowerCase()) || list.includes(String(claims.memberId)) || (claims.username && list.includes(String(claims.username).toLowerCase()))) return true; // email, member id or IAP username return mode === 'key' && req && hasPass(req); } // the IAP -> game callback is signed over the timestamp and the raw body with the shared secret