Debug DB problem

This commit is contained in:
2026-01-28 02:27:26 +00:00
parent 38d240d86d
commit 88a170a37b
4 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ async def websocket_authenticate(ws: WebSocket, auth=AUTH_COOKIE):
session_user_uuid = ctx.user.uuid
credential_ids = db.get_user_credential_ids(session_user_uuid) or None
cred = await authenticate_chat(ws, origin, credential_ids)
cred, new_sign_count = await authenticate_chat(ws, origin, credential_ids)
# If reauth mode, verify the credential belongs to the session's user
if session_user_uuid and cred.user != session_user_uuid:
@@ -116,7 +116,7 @@ async def websocket_authenticate(ws: WebSocket, auth=AUTH_COOKIE):
token = db.login(
user_uuid=cred.user,
credential_uuid=cred.uuid,
sign_count=cred.sign_count,
sign_count=new_sign_count,
host=normalized_host,
ip=metadata["ip"],
user_agent=metadata["user_agent"],