Fix: standardize the use of error codes related to login credentials

This commit is contained in:
HFO4
2020-12-08 20:13:42 +08:00
parent c87109c8b1
commit 055ed0e075
5 changed files with 9 additions and 7 deletions

View File

@ -35,7 +35,7 @@ func SignRequired() gin.HandlerFunc {
}
if err != nil {
c.JSON(200, serializer.Err(serializer.CodeCheckLogin, err.Error(), err))
c.JSON(200, serializer.Err(serializer.CodeCredentialInvalid, err.Error(), err))
c.Abort()
return
}