GUI remote login

This commit is contained in:
Cyberboss
2017-09-14 17:11:52 -04:00
parent 3c99f3a9fd
commit ceae970592
9 changed files with 2468 additions and 16 deletions
+1 -13
View File
@@ -18,21 +18,9 @@ namespace TGControlPanel
Properties.Settings.Default.UpgradeRequired = false;
Properties.Settings.Default.Save();
}
var res = Server.VerifyConnection();
if (res != null)
{
MessageBox.Show("Unable to connect to service! Error: " + res);
return;
}
if (!Server.Authenticate())
{
MessageBox.Show("Authentication error! Username/password/windows identity is not authorized!");
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Main());
return;
Application.Run(new Login());
}
catch (Exception e)
{