log user auto-logins and note to improve

This commit is contained in:
Blue Kelp 2019-08-02 13:55:26 -07:00
parent bf7c74e072
commit ae9d51c8b7

View file

@ -97,8 +97,11 @@ public class UpstreamPacketHandler extends LoggingPacketHandler {
UserAuthenticationInfo info = connector.getConfig().getUserAuths().get(bedrockUsername);
if (info != null) {
connector.getLogger().debug("using stored credentials for bedrock user " + session.getAuthenticationData().getName());
connector.getLogger().info("using stored credentials for bedrock user " + session.getAuthenticationData().getName());
session.authenticate(info.email, info.password);
// TODO send a message to bedrock user telling them they are connected (if nothing like a motd
// somes from the Java server w/in a few seconds)
return true;
}
}