Replaced insecure Minecraft account authentication with server join technique

This commit is contained in:
CrushedPixel
2015-05-27 13:35:44 +02:00
parent f0f0f1aa86
commit 2744e7cf6c
6 changed files with 75 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
package eu.crushedpixel.replaymod.gui.online;
import com.mojang.authlib.exceptions.AuthenticationException;
import eu.crushedpixel.replaymod.api.ApiException;
import eu.crushedpixel.replaymod.gui.GuiConstants;
import eu.crushedpixel.replaymod.gui.PasswordTextField;
@@ -196,6 +197,9 @@ public class GuiRegister extends GuiScreen {
});
} catch(ApiException ae) {
message = ae.getLocalizedMessage();
} catch(AuthenticationException aue) {
aue.printStackTrace();
message = I18n.format("replaymod.gui.register.error.authfailed");
} catch(Exception e) {
e.printStackTrace();
message = I18n.format("replaymod.gui.login.connectionerror");