oops
authorTheSaminator <TheSaminator@users.noreply.github.com>
Mon, 14 Feb 2022 23:01:18 +0000 (18:01 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Mon, 14 Feb 2022 23:01:18 +0000 (18:01 -0500)
src/jvmMain/kotlin/starshipfights/info/html_utils.kt

index 180d50823fb949c083523ac8c9870f0e5567f29d..c8f0dbb3893a5fca56200de2681cc86f76830c93 100644 (file)
@@ -18,5 +18,5 @@ var A.method: String?
 
 fun FORM.csrfToken(cookie: Id<UserSession>) = hiddenInput {
        name = CsrfProtector.csrfInputName
-       value = CsrfProtector.newNonce(cookie, formAction)
+       value = CsrfProtector.newNonce(cookie, this@csrfToken.action)
 }