Browse Source

fix: API key incorrectly forces token revalidation

pull/2452/head 2.5.136
NGPixel 4 years ago
parent
commit
1404d6343e
1 changed files with 1 additions and 1 deletions
  1. 2
      server/core/auth.js

2
server/core/auth.js

@ -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

Loading…
Cancel
Save