Fixes account creation with terminals that use redirection (git bash) (#239)

- [X] Fixes account creation with terminals that use redirection
Bumps release version
This commit is contained in:
deccer 2020-09-11 23:05:59 +04:00 committed by GitHub
parent c3d2740983
commit 76a9729f61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,10 @@ namespace Server.Misc
if (Accounts.Count == 0)
{
Console.WriteLine("This server has no accounts.");
Console.Write("Do you want to create the owner account now? (y/n)");
Console.Write("Do you want to create the owner account now? (y/n): ");
if (Console.ReadKey(true).Key == ConsoleKey.Y)
var answer = Console.ReadLine();
if (answer == "y" || answer == "Y")
{
Console.WriteLine();
@ -30,7 +31,6 @@ namespace Server.Misc
else
{
Console.WriteLine();
Console.WriteLine("Account not created.");
}
}