处理低危漏洞:用户枚举

This commit is contained in:
yazzyk 2025-06-25 17:43:38 +08:00
parent 6cb0fcfd93
commit 99967d35e5
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ func (s *sAdminSite) AccountLogin(ctx context.Context, in *adminin.AccountLoginI
}
if mb == nil {
err = gerror.New("账号不存在")
err = gerror.New("用户名或密码错误")
return
}

View File

@ -68,7 +68,7 @@ func CheckPassword(input, salt, hash string) (err error) {
}
if hash != gmd5.MustEncryptString(password+salt) {
err = gerror.New("用户密码不正确")
err = gerror.New("用户名或密码错误")
return
}
return