Add files via upload

This commit is contained in:
公明
2025-12-24 01:47:57 +08:00
committed by GitHub
parent 6e832601d8
commit b8e58d9e44
4 changed files with 92 additions and 17 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (h *AuthHandler) ChangePassword(c *gin.Context) {
}
if !h.manager.CheckPassword(oldPassword) {
c.JSON(http.StatusUnauthorized, gin.H{"error": "当前密码不正确"})
c.JSON(http.StatusBadRequest, gin.H{"error": "当前密码不正确"})
return
}