From 29169f674ea4b5d53d4a946c64362e3b7a3151f9 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 9 Nov 2024 21:54:44 +0100 Subject: [PATCH] Bump version --- .../kotlin/dev/schlaubi/tonbrett/bot/server/Authentication.kt | 2 +- build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/server/Authentication.kt b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/server/Authentication.kt index 98f0951..8586532 100644 --- a/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/server/Authentication.kt +++ b/bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/server/Authentication.kt @@ -71,7 +71,7 @@ private val oauthSettings = OAuthServerSettings.OAuth2ServerSettings( private val SessionType = createRouteScopedPlugin("SessionType") { onCall { call -> - val type = call.parameters["type"]?.let(Route.Auth.Type::valueOf) ?: return@intercept + val type = call.parameters["type"]?.let(Route.Auth.Type::valueOf) ?: return@onCall call.sessions.set(Session(type)) } } diff --git a/build.gradle.kts b/build.gradle.kts index 7c79ed2..9668590 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { allprojects { group = "dev.schlaubi.tonbrett" - version = "2.0.1" + version = "2.1.0" repositories { mavenCentral()