From 028ec1d7401a63dbfdacf65a56762648b7d862f6 Mon Sep 17 00:00:00 2001 From: dragove Date: Tue, 29 Oct 2024 22:49:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=AA=8C=E8=AF=81refreshToken=E6=9C=89?= =?UTF-8?q?=E6=95=88=E6=97=B6=E4=BD=BF=E7=94=A8=20issueAt=20=E8=AE=A9?= =?UTF-8?q?=E5=90=AB=E4=B9=89=E6=9B=B4=E6=B8=85=E6=99=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/plus/maa/backend/service/UserService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }