oops
authorLanius Trolling <lanius@laniustrolling.dev>
Mon, 22 Apr 2024 23:54:50 +0000 (19:54 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Mon, 22 Apr 2024 23:54:50 +0000 (19:54 -0400)
src/jvmMain/kotlin/info/mechyrdia/auth/ViewsLogin.kt

index a9aa7f3034f0555fd6e8057a84992a6a802581f7..03ce61fc6c7e176f6191a3dcf6e7a3020f6ca8b8 100644 (file)
@@ -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