auth: fix auth issues
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-22 17:03:44 -04:00
parent 9acb592d3f
commit 296e668db6
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -129,7 +129,8 @@ def main():
# Add authentication middleware if enabled (BEFORE routes)
if auth_enabled:
app.add_middleware(SimpleAuthMiddleware, config=config)
# Pass the session manager to middleware so it uses the same instance
app.add_middleware(SimpleAuthMiddleware, config=config, session_manager=session_manager)
print("🔐 Authentication middleware added to web interface")
# Setup static files and routes