diff --git a/src/allmende_payment_system/__init__.py b/src/allmende_payment_system/__init__.py index 486c852..e69de29 100644 --- a/src/allmende_payment_system/__init__.py +++ b/src/allmende_payment_system/__init__.py @@ -1,2 +0,0 @@ -def main() -> None: - print("Hello from allmende-payment-system!") diff --git a/src/allmende_payment_system/api/dependencies.py b/src/allmende_payment_system/api/dependencies.py index 95dc882..a2de773 100644 --- a/src/allmende_payment_system/api/dependencies.py +++ b/src/allmende_payment_system/api/dependencies.py @@ -30,7 +30,7 @@ async def get_user(request: Request) -> dict: if "ynh_user" not in request.headers: raise HTTPException(status_code=401, detail="Missing ynh_user header") - return {"username": request.headers["ynh_user"]} + return {"username": request.headers["ynh_user"], "display_name": request.headers["ynh_user_fullname"]} async def get_user_object(request: Request, session: SessionDep) -> User: