redirect to login page when user logout without token

This commit is contained in:
MaysWind
2023-04-16 02:00:59 +08:00
parent 221a7809b6
commit a96eb31dc9
6 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func (a *TokensApi) TokenRevokeCurrentHandler(c *core.Context) (interface{}, *er
_, claims, err := a.tokens.ParseToken(c)
if err != nil {
return nil, errs.NewIncompleteOrIncorrectSubmissionError(err)
return nil, errs.Or(err, errs.NewIncompleteOrIncorrectSubmissionError(err))
}
uid, err := utils.StringToInt64(claims.Id)