Late night hacking...?
This commit is contained in:
parent
dc0b0f4613
commit
208419c2b1
@ -25,12 +25,12 @@ from fastapi.responses import (
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from ..db import sql
|
||||
from .api_handlers import (
|
||||
from .api import (
|
||||
register_api_routes,
|
||||
validate_token,
|
||||
)
|
||||
from .reset_handlers import register_reset_routes
|
||||
from .ws_handlers import ws_app
|
||||
from .reset import register_reset_routes
|
||||
from .ws import ws_app
|
||||
|
||||
STATIC_DIR = Path(__file__).parent.parent / "frontend-build"
|
||||
|
||||
|
@ -88,7 +88,7 @@ def register_reset_routes(app: FastAPI):
|
||||
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."""
|
||||
try:
|
||||
# Get session token first to validate it exists and is not expired
|
Loading…
x
Reference in New Issue
Block a user