login modify

This commit is contained in:
Gordon 2022-02-21 10:10:11 +08:00
parent e90d8a87ee
commit 8915848a52

View File

@ -43,7 +43,7 @@ func Login(c *gin.Context) {
}
if r.Password != params.Password {
log.NewError(params.OperationID, "password err", params.Password, account, r.Password, r.Account)
c.JSON(http.StatusOK, gin.H{"errCode": constant.PasswordErr, "errMsg": "Mobile phone number is not registered"})
c.JSON(http.StatusOK, gin.H{"errCode": constant.PasswordErr, "errMsg": "password err"})
return
}
url := fmt.Sprintf("http://%s:10000/auth/user_token", utils.ServerIP)