From: TheSaminator Date: Sun, 6 Feb 2022 21:24:24 +0000 (-0500) Subject: Hopefully fix login POSTing X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=6ddeb2796147e84c07ceb81b1233f9eb36dc9d77;p=starship-fights Hopefully fix login POSTing --- diff --git a/plan/oauth-logo.png b/plan/oauth-logo.png new file mode 100644 index 0000000..f0940b4 Binary files /dev/null and b/plan/oauth-logo.png differ diff --git a/src/jvmMain/kotlin/starshipfights/auth/providers.kt b/src/jvmMain/kotlin/starshipfights/auth/providers.kt index a638ee9..8018646 100644 --- a/src/jvmMain/kotlin/starshipfights/auth/providers.kt +++ b/src/jvmMain/kotlin/starshipfights/auth/providers.kt @@ -191,8 +191,6 @@ object TestAuthProvider : AuthProvider { form("test-auth") { userParamName = "username" passwordParamName = "password" - skipWhen { it.sessions.get>() != null } - validate { credentials -> val originAddress = request.origin.remoteHost val userAgent = request.userAgent() @@ -241,7 +239,7 @@ object TestAuthProvider : AuthProvider { call.respondHtml(HttpStatusCode.OK, page("Authentication Test", call.standardNavBar(), CustomSidebar { p { +"This method of authentication is only for testing. " - +"If you see it on the production site, you should start freaking out." + +"I trust you not to abuse this; don't make me regret my trust." } }) { section {