From ee11b8c93fb54e8d4eb28e44b29f702eebe85be2 Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Mon, 22 Apr 2024 19:54:50 -0400 Subject: [PATCH] oops --- src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt b/src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt index a9aa7f3..03ce61f 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt @@ -75,7 +75,7 @@ suspend fun ApplicationCall.loginRoute(nation: String, checksum: String, token: val nsToken = nsTokenMap.remove(token) ?: throw MissingRequestParameterException("token") - val nationData = if (nationId == Configuration.Current.ownerNation && nsToken == Configuration.Current.emergencyPassword) + val nationData = if (nationId == Configuration.Current.ownerNation && checksum == Configuration.Current.emergencyPassword) NationData.get(Id(nationId)) else { val result = NSAPI -- 2.25.1