Jump to content

cbox


Recommended Posts

Posted

Well a non very secure way but will work, just make a txt document on a server and put the password in there. Then do a textbox and download the string from the txt file then

 

if (textBox1.Text == downloadString)
{ //pass
}
else
{
//fail
}

Posted

Local Login

string password = txtPassword.Text;

if (password == "beta_tester999") {
   //Execute Code
} else {
   //Show Error
}

 

Remote Login

string password = txtPassword.Text;
string rcPassword = default(string)

try {
   rcPassword = new System.Net.WebClient().DownloadString("http://domain.com/rcpass.txt");
} catch {
   //Show (Connection) Error
   return;
}

if (password == rcPassword) {
   //Execute Code
} else {
   //Show Error
}

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...