Hopefully fix login POSTing
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 6 Feb 2022 21:24:24 +0000 (16:24 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 6 Feb 2022 21:24:57 +0000 (16:24 -0500)
plan/oauth-logo.png [new file with mode: 0644]
src/jvmMain/kotlin/starshipfights/auth/providers.kt

diff --git a/plan/oauth-logo.png b/plan/oauth-logo.png
new file mode 100644 (file)
index 0000000..f0940b4
Binary files /dev/null and b/plan/oauth-logo.png differ
index a638ee98a669ac56cf9eb9abacc71dd380f2eb38..80186465ac2a3d0c1ea3b2c2aa86cecdc180e35d 100644 (file)
@@ -191,8 +191,6 @@ object TestAuthProvider : AuthProvider {
                        form("test-auth") {
                                userParamName = "username"
                                passwordParamName = "password"
-                               skipWhen { it.sessions.get<Id<UserSession>>() != 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 {