Update registration.py

disable registration for Mr One device for now.
This commit is contained in:
eFini
2023-07-22 15:15:29 +08:00
committed by GitHub
parent d0beb4d392
commit 67c2c03b43

View File

@@ -31,7 +31,8 @@ def register(show_spinner=False) -> Optional[str]:
HardwareSerial = params.get("HardwareSerial", encoding='utf8')
dongle_id: Optional[str] = params.get("DongleId", encoding='utf8')
needs_registration = None in (IMEI, HardwareSerial, dongle_id)
return UNREGISTERED_DONGLE_ID
pubkey = Path(PERSIST+"/comma/id_rsa.pub")
if not pubkey.is_file():
dongle_id = UNREGISTERED_DONGLE_ID