From 6879440acb03bf4ab567b0ad960e64431ab31a6a Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 3 Mar 2021 17:43:04 +0100 Subject: Core/Commands: Fixed .bnetaccount gameaccountcreate command generating too long passwords --- src/server/scripts/Commands/cs_battlenet_account.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_battlenet_account.cpp b/src/server/scripts/Commands/cs_battlenet_account.cpp index 8263a047636..748cfbe1aee 100644 --- a/src/server/scripts/Commands/cs_battlenet_account.cpp +++ b/src/server/scripts/Commands/cs_battlenet_account.cpp @@ -425,7 +425,7 @@ public: std::string accountName = std::to_string(accountId) + '#' + std::to_string(uint32(index)); // Generate random hex string for password, these accounts must not be logged on with GRUNT - std::array randPassword = Trinity::Crypto::GetRandomBytes<16>(); + std::array randPassword = Trinity::Crypto::GetRandomBytes<8>(); switch (sAccountMgr->CreateAccount(accountName, ByteArrayToHexStr(randPassword), bnetAccountName, accountId, index)) { -- cgit v1.2.3