session list only shows unexpired normal sessions

This commit is contained in:
MaysWind
2020-12-12 22:23:13 +08:00
parent 75b151da9b
commit 2fa5ed418a
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ var (
func (a *TokensApi) TokenListHandler(c *core.Context) (interface{}, *errs.Error) {
uid := c.GetCurrentUid()
tokens, err := a.tokens.GetAllTokensByUid(uid)
tokens, err := a.tokens.GetAllUnexpiredMormalTokensByUid(uid)
if err != nil {
log.ErrorfWithRequestId(c, "[tokens.TokenListHandler] failed to get all tokens for user \"uid:%d\", because %s", uid, err.Error())