优化部分部署信息

This commit is contained in:
2026-08-01 19:59:55 +08:00
parent 2e58dc719a
commit 848062da84
2 changed files with 59 additions and 13 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ func registerHandler(c *gin.Context) {
}
if !ValidatePassword(req.Password) {
c.JSON(http.StatusBadRequest, gin.H{"code": 1, "msg": "密码至少 8 位,需包含大小写字母数字和特殊字符"})
c.JSON(http.StatusBadRequest, gin.H{"code": 1, "msg": "密码至少 8 位,需包含大小写字母数字"})
return
}
@@ -205,7 +205,7 @@ func changePasswordHandler(c *gin.Context) {
}
if !ValidatePassword(req.NewPassword) {
c.JSON(http.StatusBadRequest, gin.H{"code": 1, "msg": "密码至少 8 位,需包含大小写字母数字和特殊字符"})
c.JSON(http.StatusBadRequest, gin.H{"code": 1, "msg": "密码至少 8 位,需包含大小写字母数字"})
return
}