fix: API key incorrectly forces token revalidation

pull/2452/head 2.5.136
NGPixel 4 years ago
parent 8f6cba262f
commit 1404d6343e

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