Skip to content

Commit

Permalink
Merge pull request from GHSA-hcw2-2r9c-gc6p
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Mar 12, 2024
1 parent 9c261dd commit dd927fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/v1/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd927fe

Please # to comment.