From 2f271b1dc483fe6d8906ef17170ca7dc13a05427 Mon Sep 17 00:00:00 2001 From: canglan Date: Tue, 14 Apr 2026 08:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSession=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/routes/auth.py b/backend/routes/auth.py index b6bdea2..5aadd69 100644 --- a/backend/routes/auth.py +++ b/backend/routes/auth.py @@ -44,6 +44,7 @@ async def login(request: LoginRequest, http_request: Request): "username": result["username"], "real_name": result["real_name"], "user_type": result["user_type"], + "role": result.get("role"), "need_change_password": result["need_change_password"], "redirect": result["redirect"] },