mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
2d174f81c0
commit
9d01d2c631
2 changed files with 2 additions and 4 deletions
|
|
@ -31,8 +31,7 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
Console.ForegroundColor = ConsoleColor.DarkGray;
|
Console.ForegroundColor = ConsoleColor.DarkGray;
|
||||||
WebClient wClient = new WebClient();
|
WebClient wClient = new WebClient();
|
||||||
string str_len = new String('*', pass.Length);
|
Console.WriteLine("https://login.minecraft.net/?user=" + user + "&password=<******>&version=13");
|
||||||
Console.WriteLine("https://login.minecraft.net/?user=" + user + "&password=<" + str_len + ">&version=13");
|
|
||||||
string result = wClient.DownloadString("https://login.minecraft.net/?user=" + user + "&password=" + pass + "&version=13");
|
string result = wClient.DownloadString("https://login.minecraft.net/?user=" + user + "&password=" + pass + "&version=13");
|
||||||
outdata = result;
|
outdata = result;
|
||||||
Console.WriteLine(result);
|
Console.WriteLine(result);
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,7 @@ namespace MinecraftClient
|
||||||
|
|
||||||
//Hide the password
|
//Hide the password
|
||||||
Console.CursorTop--;
|
Console.CursorTop--;
|
||||||
string str_len = new String('*', pass.Length);
|
Console.Write("Password : <******>");
|
||||||
Console.Write("Password : <" + str_len + ">");
|
|
||||||
for (int i = 19; i < Console.BufferWidth; i++) { Console.Write(' '); }
|
for (int i = 19; i < Console.BufferWidth; i++) { Console.Write(' '); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue