Core/Commands: Fixed .bnetaccount gameaccountcreate command generating too long passwords

Port From (https://github.com/TrinityCore/TrinityCore/commit/6879440acb03bf4ab567b0ad960e64431ab31a6a)
This commit is contained in:
hondacrx
2021-03-04 15:30:00 -05:00
parent 3ae07c3cbe
commit 23c56d6d92
@@ -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: