Skip to content

Commit 357279b

Browse files
committed
Renaming
1 parent 5ecf50e commit 357279b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

transformerlab/routers/auth2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141

4242
async def get_user_and_team(
4343
user: User = Depends(current_active_user),
44-
x_team: str | None = Header(None, alias="X-Team"),
44+
x_team: str | None = Header(None, alias="X-Team-Id"),
4545
session: AsyncSession = Depends(get_async_session),
4646
):
4747
"""
4848
Dependency to validate user authentication and team membership.
49-
Extracts X-Team header and verifies user belongs to that team.
49+
Extracts X-Team-Id header and verifies user belongs to that team.
5050
"""
5151
if not x_team:
52-
raise HTTPException(status_code=400, detail="X-Team header missing")
52+
raise HTTPException(status_code=400, detail="X-Team-Id header missing")
5353

5454
# Verify user is associated with the provided team id
5555
stmt = select(UserTeam).where(

0 commit comments

Comments
 (0)