fix authtoken expiry check
This commit is contained in:
@@ -28,6 +28,7 @@ import java.security.interfaces.RSAPrivateKey
|
||||
import java.security.interfaces.RSAPublicKey
|
||||
import java.security.spec.PKCS8EncodedKeySpec
|
||||
import java.security.spec.X509EncodedKeySpec
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
import kotlin.jvm.optionals.getOrDefault
|
||||
|
||||
@@ -37,7 +38,7 @@ object Session {
|
||||
private val logger = LoggerFactory.getLogger("session")
|
||||
private val currentUser = object : ThreadLocal<AuthUser>() {
|
||||
override fun initialValue(): AuthUser {
|
||||
return AuthUser("", "", emptyList(), "")
|
||||
return AuthUser("", "", emptyList(), "", LocalDateTime.now())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user