Skip to content

Commit be3fdcb

Browse files
author
tangjiawei
committed
Merge branch 'hotfix_v3.2.7' into dev
2 parents e10659c + 0e34479 commit be3fdcb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

monitor-server/middleware/response.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ func ReturnPasswordError(c *gin.Context) {
113113
}
114114

115115
func ReturnTokenError(c *gin.Context) {
116-
ReturnError(c, http.StatusOK, GetMessageMap(c).TokenError, nil)
117-
}
118-
119-
func ReturnTokenAuthorityError(c *gin.Context) {
120-
ReturnError(c, http.StatusOK, GetMessageMap(c).TokenAuthorityError, nil)
116+
ReturnError(c, 401, GetMessageMap(c).TokenError, nil)
121117
}
122118

123119
func ReturnDashboardNameRepeatError(c *gin.Context) {

0 commit comments

Comments
 (0)