Various fixes and cleanup, regressions from prior commits.

This commit is contained in:
Leo Vasanko
2025-12-03 15:40:59 -06:00
parent 6a7b1a876e
commit 7a70c933c9
10 changed files with 87 additions and 67 deletions
+5 -1
View File
@@ -228,7 +228,11 @@ async def api_user_info(
target_user_uuid = reset_token.user_uuid
else:
if auth is None:
raise ValueError("Authentication Required")
raise authz.AuthException(
status_code=401,
detail="Authentication required",
mode="login",
)
session_record = await get_session(auth, host=request.headers.get("host"))
authenticated = True
target_user_uuid = session_record.user_uuid