mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
DONT LOOK DIRECTLY INTO THE AUTHENTICATION CODE!
This commit is contained in:
@@ -24,6 +24,11 @@ namespace TGControlPanel
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user