From be7f5d5072d66662c547a4bf1e93e43bca36a078 Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 17 Jun 2026 19:21:46 +0800 Subject: [PATCH] fix(auth): stop pre-filling login username on new devices Remove username_hint from hub auth status API and disable autocomplete on hub and instance login forms. Co-authored-by: Cursor --- crypto_monitor_binance/templates/login.html | 6 +++--- crypto_monitor_gate/templates/login.html | 6 +++--- crypto_monitor_gate_bot/templates/login.html | 6 +++--- crypto_monitor_okx/templates/login.html | 6 +++--- manual_trading_hub/hub.py | 1 - manual_trading_hub/static/login.html | 7 +++---- 6 files changed, 15 insertions(+), 17 deletions(-) diff --git a/crypto_monitor_binance/templates/login.html b/crypto_monitor_binance/templates/login.html index ee04515..8b6ea41 100644 --- a/crypto_monitor_binance/templates/login.html +++ b/crypto_monitor_binance/templates/login.html @@ -120,14 +120,14 @@
{{ messages[0] }}
{% endif %} {% endwith %} -
+
- +
- +
diff --git a/crypto_monitor_gate/templates/login.html b/crypto_monitor_gate/templates/login.html index ee04515..8b6ea41 100644 --- a/crypto_monitor_gate/templates/login.html +++ b/crypto_monitor_gate/templates/login.html @@ -120,14 +120,14 @@
{{ messages[0] }}
{% endif %} {% endwith %} -
+
- +
- +
diff --git a/crypto_monitor_gate_bot/templates/login.html b/crypto_monitor_gate_bot/templates/login.html index ee04515..8b6ea41 100644 --- a/crypto_monitor_gate_bot/templates/login.html +++ b/crypto_monitor_gate_bot/templates/login.html @@ -120,14 +120,14 @@
{{ messages[0] }}
{% endif %} {% endwith %} -
+
- +
- +
diff --git a/crypto_monitor_okx/templates/login.html b/crypto_monitor_okx/templates/login.html index 5e45906..39ec256 100644 --- a/crypto_monitor_okx/templates/login.html +++ b/crypto_monitor_okx/templates/login.html @@ -109,14 +109,14 @@
{{ messages[0] }}
{% endif %} {% endwith %} -
+
- +
- +
diff --git a/manual_trading_hub/hub.py b/manual_trading_hub/hub.py index ac4e293..4eac354 100644 --- a/manual_trading_hub/hub.py +++ b/manual_trading_hub/hub.py @@ -613,7 +613,6 @@ def api_auth_status(request: Request): return { "required": required, "logged_in": logged_in, - "username_hint": expected_username() if required else None, } diff --git a/manual_trading_hub/static/login.html b/manual_trading_hub/static/login.html index 07ecbe5..ebba53f 100644 --- a/manual_trading_hub/static/login.html +++ b/manual_trading_hub/static/login.html @@ -38,14 +38,14 @@ -