From 39bade10a3d7bc89fa5f37c9a0130ac7d5051719 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期四, 13 二月 2025 13:54:09 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway into develop_2.1

---
 app/api/auth.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/app/api/auth.py b/app/api/auth.py
index da59d89..b43e9d1 100644
--- a/app/api/auth.py
+++ b/app/api/auth.py
@@ -126,14 +126,16 @@
             continue
         try:
             name = login_data.username
+            email = ""
             app_password = login_data.password
             user_app = await UserAppDao(db).get_data_by_id(user.id, app["id"])
             if user_app:
                 name  = user_app.username
+                email  = user_app.email
                 app_password = user_app.decrypted_password(user_app.password)
             else:
                 await update_user_info(db, user.id)
-            token = await service.login(name, app_password)
+            token = await service.login(name, app_password,email=email)
             token_dict[app["id"]] = token
         except Exception as e:
             return Response(code=500, msg=f"Failed to login with {app['id']}: {str(e)}")

--
Gitblit v1.8.0