From 564633d0f6ac77cd0943e8378fa4789a5e14ef47 Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] Generate a fake "DongleID" for unofficial devices --- system/athena/registration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 system/athena/registration.py diff --git a/system/athena/registration.py b/system/athena/registration.py old mode 100755 new mode 100644 index 405b2423..5df906cf --- a/system/athena/registration.py +++ b/system/athena/registration.py @@ -2,6 +2,8 @@ import time import json import jwt +import random +import string from typing import cast from pathlib import Path @@ -78,7 +80,7 @@ def register(show_spinner=False) -> str | None: if resp.status_code in (402, 403): cloudlog.info(f"Unable to register device, got {resp.status_code}") - dongle_id = UNREGISTERED_DONGLE_ID + dongle_id = ''.join(random.choices(string.ascii_lowercase + string.digits, k=16)) else: dongleauth = json.loads(resp.text) dongle_id = dongleauth["dongle_id"]