fix: API key incorrectly forces token revalidation

This commit is contained in:
NGPixel 2020-09-12 14:33:45 -04:00
parent 8f6cba262f
commit 1404d6343e

View File

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