zhaoqingang
2025-02-13 77b983759956322fcd2259de4f1094217535dcdb
app/service/ragflow.py
@@ -54,7 +54,7 @@
            response = await client.post(
                f"{self.base_url}/v1/user/login",
                headers={'Content-Type': 'application/json'},
                json={"email": email if email else f"{username}@example.com", "password": password}
                json={"email": username if "@" in username else f"{username}@example.com", "password": password}
            )
            if response.status_code != 200:
                raise Exception(f"Ragflow login failed: {response.text}")