From b8a8bfd1a9a33c7e580fd5feeadab4273bca81dd Mon Sep 17 00:00:00 2001 From: Voxpire Date: Thu, 27 Feb 2025 02:43:20 +0000 Subject: [PATCH] fix: Fixes console clobbering when prompted to add an owner account (#2133) ### Summary - Updates AccountPrompt to use `logger` to avoid console clobbering ### Screenshot ![image](https://github.com/user-attachments/assets/8bfbaccc-3c23-4d05-ab49-a656e6a8803f) --- Projects/UOContent/Misc/AccountPrompt.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Projects/UOContent/Misc/AccountPrompt.cs b/Projects/UOContent/Misc/AccountPrompt.cs index fc283892b..032c55526 100644 --- a/Projects/UOContent/Misc/AccountPrompt.cs +++ b/Projects/UOContent/Misc/AccountPrompt.cs @@ -1,4 +1,3 @@ -using System; using Server.Accounting; using Server.Logging; @@ -12,18 +11,16 @@ public static class AccountPrompt { if (Accounts.Count == 0) { - Console.WriteLine("This server has no accounts."); - Console.Write("Do you want to create the owner account now? (y/n): "); + logger.Warning("This server has no accounts."); + logger.Information("Do you want to create the owner account now? (y/n):"); var answer = ConsoleInputHandler.ReadLine(); if (answer.InsensitiveEquals("y")) { - Console.WriteLine(); - - Console.Write("Username: "); + logger.Information("Input Username:"); var username = ConsoleInputHandler.ReadLine(); - Console.Write("Password: "); + logger.Information("Input Password:"); var password = ConsoleInputHandler.ReadLine(); var a = new Account(username, password)