feat: update backend scripts and migration tools

This commit is contained in:
nofxai
2025-11-05 06:56:28 +00:00
parent 985f1b1111
commit aecc5e58a1
6 changed files with 455 additions and 59 deletions

View File

@@ -1363,6 +1363,7 @@ func (s *Server) handleLogin(c *gin.Context) {
// 验证密码
if !auth.CheckPassword(req.Password, user.PasswordHash) {
log.Printf("DEBUG: 密码验证失败")
c.JSON(http.StatusUnauthorized, gin.H{"error": "邮箱或密码错误"})
return
}