Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2025-12-24 01:47:57 +08:00
1 parent 6e832601d8
commit b8e58d9e44
4 files changed
+92 -17

No files matched your search

+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
}