From: Lanius Trolling Date: Mon, 22 Apr 2024 23:54:50 +0000 (-0400) Subject: oops X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=ee11b8c93fb54e8d4eb28e44b29f702eebe85be2;p=factbooks oops --- 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