From 23c56d6d92f7a83351b0eb483e0462fb373bc3b2 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 4 Mar 2021 15:30:00 -0500 Subject: [PATCH] Core/Commands: Fixed .bnetaccount gameaccountcreate command generating too long passwords Port From (https://github.com/TrinityCore/TrinityCore/commit/6879440acb03bf4ab567b0ad960e64431ab31a6a) --- Source/Game/Chat/Commands/BNetAccountCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Chat/Commands/BNetAccountCommands.cs b/Source/Game/Chat/Commands/BNetAccountCommands.cs index 3ec4d67b6..e6d730ddc 100644 --- a/Source/Game/Chat/Commands/BNetAccountCommands.cs +++ b/Source/Game/Chat/Commands/BNetAccountCommands.cs @@ -100,7 +100,7 @@ namespace Game.Chat.Commands string accountName = accountId.ToString() + '#' + index; // Generate random hex string for password, these accounts must not be logged on with GRUNT - byte[] randPassword = new byte[0].GenerateRandomKey(16); + byte[] randPassword = new byte[0].GenerateRandomKey(8); switch (Global.AccountMgr.CreateAccount(accountName, randPassword.ToHexString(), bnetAccountName, accountId, index)) { case AccountOpResult.Ok: