mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-08 00:51:18 +02:00
Add files via upload
This commit is contained in:
4 files changed
+92
-17
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user