diff --git a/src/main/kotlin/plus/maa/backend/service/UserService.kt b/src/main/kotlin/plus/maa/backend/service/UserService.kt index c869086f..032077a8 100644 --- a/src/main/kotlin/plus/maa/backend/service/UserService.kt +++ b/src/main/kotlin/plus/maa/backend/service/UserService.kt @@ -141,7 +141,7 @@ class UserService( val userId = old.subject val user = userRepository.findById(userId).orElseThrow() - if (old.notBefore.isBefore(user.pwdUpdateTime)) { + if (old.issuedAt.isBefore(user.pwdUpdateTime)) { throw MaaResultException(401, "invalid token") }