fixed login tagline
This commit is contained in:
@@ -77,7 +77,7 @@ function authMiddleware(req, res, next) {
|
|||||||
if (!AUTH_ENABLED) return next();
|
if (!AUTH_ENABLED) return next();
|
||||||
|
|
||||||
// Skip auth for login, auth-status, and members endpoints
|
// Skip auth for login, auth-status, and members endpoints
|
||||||
if (req.path === '/api/login' || req.path === '/api/auth-status' || req.path === '/api/members') return next();
|
if (req.path === '/api/login' || req.path === '/api/auth-status' || req.path === '/api/members' || req.path === '/api/config') return next();
|
||||||
|
|
||||||
const token = req.headers['x-auth-token'];
|
const token = req.headers['x-auth-token'];
|
||||||
if (token && sessions.has(token)) {
|
if (token && sessions.has(token)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user