Reverted password length change (privacy)

for privacy reasons, it's better not to specify the length of the
password in the console ;)
This commit is contained in:
ORelio 2013-07-20 13:02:54 +02:00
parent 2d174f81c0
commit 9d01d2c631
2 changed files with 2 additions and 4 deletions

View file

@ -31,8 +31,7 @@ namespace MinecraftClient
{
Console.ForegroundColor = ConsoleColor.DarkGray;
WebClient wClient = new WebClient();
string str_len = new String('*', pass.Length);
Console.WriteLine("https://login.minecraft.net/?user=" + user + "&password=<" + str_len + ">&version=13");
Console.WriteLine("https://login.minecraft.net/?user=" + user + "&password=<******>&version=13");
string result = wClient.DownloadString("https://login.minecraft.net/?user=" + user + "&password=" + pass + "&version=13");
outdata = result;
Console.WriteLine(result);

View file

@ -62,8 +62,7 @@ namespace MinecraftClient
//Hide the password
Console.CursorTop--;
string str_len = new String('*', pass.Length);
Console.Write("Password : <" + str_len + ">");
Console.Write("Password : <******>");
for (int i = 19; i < Console.BufferWidth; i++) { Console.Write(' '); }
}