More tracing login POST failure
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 6 Feb 2022 21:52:55 +0000 (16:52 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 6 Feb 2022 21:52:55 +0000 (16:52 -0500)
src/jvmMain/kotlin/starshipfights/auth/providers.kt

index 861359597f17d513a39ada2eb363b2050b190d37..abd3eb7aff285e376fca25b461ab48eca94f75cb 100644 (file)
@@ -197,7 +197,10 @@ object TestAuthProvider : AuthProvider {
                                        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) }
+                                                       ?: User(username = credentials.name).also {
+                                                               sfLogger.info("Attempting to add user with name ${credentials.name}")
+                                                               User.put(it)
+                                                       }
                                                sfLogger.info("Got user ${user.id}")
                                                
                                                UserSession(