From f99a8931397ee4778c16255c236ea06637f3cad1 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Mon, 13 Apr 2026 10:40:26 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20username=5Fchanged=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=AE=A4=E8=AF=81=E6=9F=A5=E8=AF=A2=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E5=90=8D=E5=90=8E=E9=93=85=E7=AC=94=E5=92=8C=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=8C=89=E9=92=AE=E6=AD=A3=E7=A1=AE=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- backend/main.py | 2 +- frontend/src/components/UserMenu.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/main.py b/backend/main.py index dc21392..9149e74 100644 --- a/backend/main.py +++ b/backend/main.py @@ -63,7 +63,7 @@ def get_current_user(request: Request): if not token: return ANON_USER conn = get_db() - user = conn.execute("SELECT id, username, role, display_name, password, business_verified FROM users WHERE token = ?", (token,)).fetchone() + user = conn.execute("SELECT id, username, role, display_name, password, business_verified, username_changed FROM users WHERE token = ?", (token,)).fetchone() conn.close() if not user: return ANON_USER diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index ad9d090..f55268b 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -41,8 +41,9 @@
- - + + +