From: TheSaminator Date: Sun, 6 Feb 2022 21:48:36 +0000 (-0500) Subject: Attempt to trace login POST failure X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=accf101d8230ee7aa668f6656a02c7a7cdb55ea5;p=starship-fights Attempt to trace login POST failure --- diff --git a/src/jvmMain/kotlin/starshipfights/auth/providers.kt b/src/jvmMain/kotlin/starshipfights/auth/providers.kt index d4edc68..8613595 100644 --- a/src/jvmMain/kotlin/starshipfights/auth/providers.kt +++ b/src/jvmMain/kotlin/starshipfights/auth/providers.kt @@ -25,6 +25,7 @@ import starshipfights.game.AdmiralRank import starshipfights.game.Faction import starshipfights.info.* import starshipfights.redirect +import starshipfights.sfLogger interface AuthProvider { fun installAuth(conf: Authentication.Configuration) @@ -194,8 +195,10 @@ object TestAuthProvider : AuthProvider { val originAddress = request.origin.remoteHost val userAgent = request.userAgent() if (userAgent != null && credentials.name.isValidUsername() && credentials.password == TEST_PASSWORD) { + sfLogger.info("Attempting to find user ${credentials.name}") val user = User.locate(User::username eq credentials.name) ?: User(username = credentials.name).also { User.put(it) } + sfLogger.info("Got user ${user.id}") UserSession( user = user.id,