update login

This commit is contained in:
HPL-JesusCastro
2026-05-26 16:29:54 +08:00
parent 75e10367b4
commit 183704b40a
4 changed files with 6 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ app.use(express.json({ limit: '10mb' }));
// Auth middleware for protected API routes
function requireAuth(req, res, next) {
const password = process.env.SHOWCASE_PASSWORD;
const password = (process.env.SHOWCASE_PASSWORD || '').trim();
if (!password) return next(); // not configured, skip
const auth = req.headers['authorization'] || '';