this code will verify your account in minecraft database, enjoy it and you have to agree, that i'm awesome with putting this here :
private string[] verifyUser(string username, string password, out bool authed)
{
HttpWebResponse response;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("
login.minecraft.net/?user=" + username + "&password=" + password + "&version=13");
try
{
response = (HttpWebResponse)request.GetResponse();
}
catch (Exception)
{
authed = false;
return null;
}
string str = new StreamReader(response.GetResponseStream()).ReadToEnd();
if (str.Contains(":") == false)
{
authed = false;
this.label4.Text = str;
return null;
}
authed = true;
return str.Split(new char[] { ':' });
}
then just make it like string and make it required for start minecraft