HTML error for failed admin login

This commit is contained in:
Thomas Sileo 2022-08-22 18:50:20 +02:00
parent e047a87620
commit ce15d2b0c3
4 changed files with 23 additions and 2 deletions

View file

@ -90,6 +90,7 @@ async def render_template(
request: Request,
template: str,
template_args: dict[str, Any] | None = None,
status_code: int = 200,
) -> TemplateResponse:
if template_args is None:
template_args = {}
@ -133,6 +134,7 @@ async def render_template(
"actor_types": ap.ACTOR_TYPES,
**template_args,
},
status_code=status_code,
)