Skip to content

Commit

Permalink
fix: API key incorrectly forces token revalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Sep 12, 2020
1 parent 8f6cba2 commit 1404d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = {
}

// Check if user / group is in revocation list
if (user && !mustRevalidate) {
if (user && !user.api && !mustRevalidate) {
const uRevalidate = WIKI.auth.revocationList.get(`u${_.toString(user.id)}`)
if (uRevalidate && user.iat < uRevalidate) {
mustRevalidate = true
Expand Down

0 comments on commit 1404d63

Please sign in to comment.