Problem solved, remove extraneous migration, reset to v1.

This commit is contained in:
2026-01-28 02:29:53 +00:00
parent 88a170a37b
commit 29ea6426fe
3 changed files with 2 additions and 19 deletions
-16
View File
@@ -31,20 +31,4 @@ def apply_migrations(data_dict: dict) -> bool:
migrated = True
_logger.info("Applied schema migration: v0 -> v1 (removed org.created_at)")
if db_version < 2:
# Migration v1 -> v2: Convert null ip/user_agent to empty strings in sessions
if "sessions" in data_dict:
for session_data in data_dict["sessions"].values():
if session_data.get("ip") is None:
session_data["ip"] = ""
if session_data.get("user_agent") is None:
session_data["user_agent"] = ""
if session_data.get("host") is None:
session_data["host"] = ""
data_dict["v"] = 2
migrated = True
_logger.info(
"Applied schema migration: v1 -> v2 (null session fields -> empty strings)"
)
return migrated
+1 -1
View File
@@ -35,7 +35,7 @@ async def authenticate_chat(
credential_ids: list[bytes] | None = None,
) -> tuple[Credential, int]:
"""Run WebAuthn authentication flow and return the credential and new sign count.
Returns:
tuple of (credential, new_sign_count) where new_sign_count comes from WebAuthn verification
"""
+1 -2
View File
@@ -8,7 +8,6 @@ This module provides a unified interface for WebAuthn operations including:
"""
import json
from datetime import datetime, timezone
from urllib.parse import urlparse
from uuid import UUID
@@ -233,7 +232,7 @@ class Passkey:
expected_challenge: The earlier generated challenge bytes
stored_cred: The server stored credential record (NOT modified)
origin: The origin URL (required, must be pre-validated)
Returns:
VerifiedAuthentication with new_sign_count and user_verified status
"""