Late night hacking...?

This commit is contained in:
Leo Vasanko 2025-07-14 17:45:01 -06:00
parent dc0b0f4613
commit 208419c2b1
4 changed files with 4 additions and 4 deletions

View File

@ -25,12 +25,12 @@ from fastapi.responses import (
from fastapi.staticfiles import StaticFiles from fastapi.staticfiles import StaticFiles
from ..db import sql from ..db import sql
from .api_handlers import ( from .api import (
register_api_routes, register_api_routes,
validate_token, validate_token,
) )
from .reset_handlers import register_reset_routes from .reset import register_reset_routes
from .ws_handlers import ws_app from .ws import ws_app
STATIC_DIR = Path(__file__).parent.parent / "frontend-build" STATIC_DIR = Path(__file__).parent.parent / "frontend-build"

View File

@ -88,7 +88,7 @@ def register_reset_routes(app: FastAPI):
return RedirectResponse(url="/", status_code=303) return RedirectResponse(url="/", status_code=303)
async def use_device_addition_token(token: str) -> dict: async def use_reset_token(token: str) -> dict:
"""Delete a device addition token after successful use.""" """Delete a device addition token after successful use."""
try: try:
# Get session token first to validate it exists and is not expired # Get session token first to validate it exists and is not expired