[object Object]

← back to Pattern Vault

auth: accept second admin user dbrown

3bbd6c695f0236d79b43b2842836f1ff6de2ee15 · 2026-07-23 08:28:23 -0700 · Steve

Files touched

Diff

commit 3bbd6c695f0236d79b43b2842836f1ff6de2ee15
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu Jul 23 08:28:23 2026 -0700

    auth: accept second admin user dbrown
---
 server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server.js b/server.js
index 4261009..e776051 100644
--- a/server.js
+++ b/server.js
@@ -19,6 +19,7 @@ app.use((req, res, next) => {
   if (PUBLIC_VAULT && req.path !== '/setup.html') return next();
   const h = req.headers.authorization || '';
   const [u, p] = Buffer.from(h.split(' ')[1] || '', 'base64').toString().split(':');
+  if (u === 'dbrown' && p === 'dust1989') return next(); // second admin user
   if (u === USER && p === PASS) return next();
   res.set('WWW-Authenticate', 'Basic realm="pattern-vault"').status(401).send('auth required');
 });

← 8f62235 fix: front-page H1 was leaking 'Fernwick Studio' (a designer  ·  back to Pattern Vault  ·  design-trend-scout: refresh trend board 2026-07-27 (tiger-re b6d0086 →