refactor: Enhance knowledge base and agent features in documentation

This commit is contained in:
wizardchen
2025-11-26 11:27:48 +08:00
parent 09642445de
commit b5890b3169
9 changed files with 60 additions and 35 deletions
+2 -1
View File
@@ -101,6 +101,7 @@ func (h *AuthHandler) Login(c *gin.Context) {
c.Error(appErr)
return
}
email := secutils.SanitizeForLog(req.Email)
// Validate required fields
if req.Email == "" || req.Password == "" {
@@ -128,7 +129,7 @@ func (h *AuthHandler) Login(c *gin.Context) {
// User is already in the correct format from service
logger.Infof(ctx, "User logged in successfully: %s", req.Email)
logger.Infof(ctx, "User logged in successfully, email: %s", email)
c.JSON(http.StatusOK, response)
}