1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 15:36:37 +00:00

Fix skip cache error

This commit is contained in:
杨赫然
2024-12-24 14:15:55 +08:00
parent db8c637c68
commit bcaf97288b

View File

@@ -1283,6 +1283,7 @@ func validateToken(r *http.Request, repoID string, skipCache bool) (string, *app
}
}
if !skipCache {
if value, ok := tokenCache.Load(token); ok {
if info, ok := value.(*tokenInfo); ok {
if info.repoID != repoID {
@@ -1292,6 +1293,7 @@ func validateToken(r *http.Request, repoID string, skipCache bool) (string, *app
return info.email, nil
}
}
}
email, err := repomgr.GetEmailByToken(repoID, token)
if err != nil {