This commit is contained in:
2026-03-24 10:15:15 +00:00
parent 2480846e31
commit 38d0429b83
2 changed files with 11 additions and 20 deletions

View File

@@ -34,11 +34,13 @@ async def startup_event():
# --- SEGURANÇA ---
async def verify_password(x_web_password: str = Header(None)):
cfg = get_config()
if x_web_password != cfg.get("web_password", "@@Gi05Br;;"):
raise HTTPException(status_code=401, detail="Não autorizado")
# Autenticação desativada conforme solicitado
return True
@app.get("/api/login")
async def login_bypass():
return {"status": "ok", "message": "Autenticação desativada"}
# --- WEB UI ---
@app.get("/", response_class=FileResponse)
async def read_root(request: Request):