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:
@@ -16,6 +16,13 @@ namespace TGCommandLine
|
||||
Console.WriteLine("Unable to connect to service: " + res);
|
||||
return ExitCode.ConnectionError;
|
||||
}
|
||||
|
||||
if (!Server.Authenticate())
|
||||
{
|
||||
Console.WriteLine("Authentication error! Username/password/windows identity is not authorized!");
|
||||
return ExitCode.ConnectionError;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return new CLICommand().DoRun(argsAsList);
|
||||
|
||||
Reference in New Issue
Block a user