Pass in user object to templates

This commit is contained in:
2025-05-30 14:41:21 +02:00
parent 391e310b91
commit 2585eb1fb3
5 changed files with 15 additions and 13 deletions

View File

@ -68,7 +68,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
"dashboard.html",
{
"page_title": "sshecret",
"user": current_user.display_name,
"user": current_user,
"stats": stats,
"last_login_events": last_login_events,
"last_audit_events": last_audit_events,