Disable verbose verification output

NameChange fix is resolved
This commit is contained in:
games647
2021-07-14 16:32:32 +02:00
parent 0a24d36ef8
commit 864e551a88
3 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ public class VerifyResponseTask implements Runnable {
Optional<Verification> response = resolver.hasJoined(requestedUsername, serverId, address); Optional<Verification> response = resolver.hasJoined(requestedUsername, serverId, address);
if (response.isPresent()) { if (response.isPresent()) {
Verification verification = response.get(); Verification verification = response.get();
plugin.getLog().info("Profile {} has a verified premium account: {}", requestedUsername, verification); plugin.getLog().info("Profile {} has a verified premium account", requestedUsername);
String realUsername = verification.getName(); String realUsername = verification.getName();
if (realUsername == null) { if (realUsername == null) {
disconnect("invalid-session", true, "Username field null for {}", requestedUsername); disconnect("invalid-session", true, "Username field null for {}", requestedUsername);

View File

@ -67,7 +67,7 @@
<dependency> <dependency>
<groupId>com.zaxxer</groupId> <groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId> <artifactId>HikariCP</artifactId>
<version>4.0.1</version> <version>4.0.3</version>
</dependency> </dependency>
<!--Logging framework implements slf4j which is required by hikari--> <!--Logging framework implements slf4j which is required by hikari-->

View File

@ -25,14 +25,14 @@
*/ */
package com.github.games647.fastlogin.core.hooks; package com.github.games647.fastlogin.core.hooks;
import java.io.IOException;
import java.util.Optional;
import com.github.games647.craftapi.model.Profile; import com.github.games647.craftapi.model.Profile;
import com.github.games647.craftapi.resolver.RateLimitException; import com.github.games647.craftapi.resolver.RateLimitException;
import com.github.games647.fastlogin.core.shared.FastLoginCore; import com.github.games647.fastlogin.core.shared.FastLoginCore;
import com.github.games647.fastlogin.core.shared.LoginSource; import com.github.games647.fastlogin.core.shared.LoginSource;
import java.io.IOException;
import java.util.Optional;
import org.geysermc.floodgate.api.FloodgateApi; import org.geysermc.floodgate.api.FloodgateApi;
import org.geysermc.floodgate.api.player.FloodgatePlayer; import org.geysermc.floodgate.api.player.FloodgatePlayer;
@ -106,7 +106,7 @@ public class FloodgateHook<P extends C, C, S extends LoginSource> {
} }
} }
} }
return null; return null;
} }
} }