MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / login_page

Function login_page

src/web/app.py:209–216  ·  view source on GitHub ↗
(request: Request, next: Optional[str] = "/", notice: Optional[str] = "")

Source from the content-addressed store, hash-verified

207
208 @app.get("/login", response_class=HTMLResponse)
209 async def login_page(request: Request, next: Optional[str] = "/", notice: Optional[str] = ""):
210 if is_default_security_config_active():
211 return build_setup_password_redirect()
212 return _render_template(
213 request,
214 "login.html",
215 {"error": "", "next": next or "/", "notice": notice or ""},
216 )
217
218 @app.post("/login")
219 async def login_submit(request: Request, password: str = Form(...), next: Optional[str] = "/"):

Callers

nothing calls this directly

Calls 3

_render_templateFunction · 0.85

Tested by

no test coverage detected