From dd927fe1c805e53790f73cfe10c7a4ded3bc5bdb Mon Sep 17 00:00:00 2001 From: CorrectRoad Date: Tue, 12 Mar 2024 18:17:46 +0800 Subject: [PATCH] Merge pull request from GHSA-hcw2-2r9c-gc6p --- route/v1/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/v1/user.go b/route/v1/user.go index c19d833..fcc2005 100644 --- a/route/v1/user.go +++ b/route/v1/user.go @@ -125,7 +125,7 @@ func PostUserLogin(c *gin.Context) { user := service.MyService.User().GetUserAllInfoByName(username) if user.Id == 0 { c.JSON(common_err.CLIENT_ERROR, - model.Result{Success: common_err.USER_NOT_EXIST, Message: common_err.GetMsg(common_err.USER_NOT_EXIST)}) + model.Result{Success: common_err.USER_NOT_EXIST_OR_PWD_INVALID, Message: common_err.GetMsg(common_err.USER_NOT_EXIST_OR_PWD_INVALID)}) return } if user.Password != encryption.GetMD5ByStr(password) {