diff --git a/l1/app/__init__.py b/l1/app/__init__.py index 408983b..3b945b3 100644 --- a/l1/app/__init__.py +++ b/l1/app/__init__.py @@ -170,7 +170,7 @@ def create_app() -> FastAPI: from artdag_common.fragments import fetch_fragments as _fetch_frags user = get_user_from_cookie(request) - auth_params = {"email": user.email} if user and user.email else {} + auth_params = {"email": user.email or user.username} if user else {} nav_params = {"app_name": "artdag", "path": path} try: diff --git a/l2/app/__init__.py b/l2/app/__init__.py index 1062a13..add533b 100644 --- a/l2/app/__init__.py +++ b/l2/app/__init__.py @@ -58,7 +58,7 @@ def create_app() -> FastAPI: from artdag_common.fragments import fetch_fragments as _fetch_frags user = get_user_from_cookie(request) - auth_params = {"email": user.email} if user and user.email else {} + auth_params = {"email": user.email or user.username} if user else {} nav_params = {"app_name": "artdag", "path": path} try: