Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix last login time (#16004)

Wang Qi59d420394731
diff --git a/api/apps/restful_apis/user_api.py b/api/apps/restful_apis/user_api.py
index a446713df2..bbf001568f 100644
--- a/api/apps/restful_apis/user_api.py
+++ b/api/apps/restful_apis/user_api.py
@@ -124,6 +124,7 @@ async def login():
elif user:
user.access_token = get_uuid()
login_user(user)
+ user.last_login_time = get_format_time()
user.update_time = current_timestamp()
user.update_date = datetime_format(datetime.now())
user.save()