Include blacklisted IP in failed login reasons

When the Mojang API responds with "Invalid username or password", this may
also be caused by IP blacklisting (too many logins or using a proxy/vps)

See #422 #415 #406 #394 #366 #359 #353 #279 #271 #232 ...
This commit is contained in:
ORelio 2018-04-18 22:35:10 +02:00
parent 758bfad501
commit a37e340613

View file

@ -261,7 +261,7 @@ namespace MinecraftClient
{
case ProtocolHandler.LoginResult.AccountMigrated: failureMessage += "Account migrated, use e-mail as username."; break;
case ProtocolHandler.LoginResult.ServiceUnavailable: failureMessage += "Login servers are unavailable. Please try again later."; break;
case ProtocolHandler.LoginResult.WrongPassword: failureMessage += "Incorrect password."; break;
case ProtocolHandler.LoginResult.WrongPassword: failureMessage += "Incorrect password, blacklisted IP or too many logins."; break;
case ProtocolHandler.LoginResult.NotPremium: failureMessage += "User not premium."; break;
case ProtocolHandler.LoginResult.OtherError: failureMessage += "Network error."; break;
case ProtocolHandler.LoginResult.SSLError: failureMessage += "SSL Error."; break;