DONT LOOK DIRECTLY INTO THE AUTHENTICATION CODE!

This commit is contained in:
Cyberboss
2017-09-14 15:59:14 -04:00
parent 82cdd25f3d
commit ebdd37d9d0
8 changed files with 65 additions and 18 deletions
+7
View File
@@ -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);