diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-03-03 17:43:04 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-03-03 17:43:04 +0100 |
commit | 6879440acb03bf4ab567b0ad960e64431ab31a6a (patch) | |
tree | f31761867469b4970f2637d1b062c2b49134a4e9 | |
parent | c0f5f7d4ef4253826d3be5882ebdcf7f463cce5a (diff) |
Core/Commands: Fixed .bnetaccount gameaccountcreate command generating too long passwords
-rw-r--r-- | src/server/scripts/Commands/cs_battlenet_account.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint8, 16> randPassword = Trinity::Crypto::GetRandomBytes<16>(); + std::array<uint8, 8> randPassword = Trinity::Crypto::GetRandomBytes<8>(); switch (sAccountMgr->CreateAccount(accountName, ByteArrayToHexStr(randPassword), bnetAccountName, accountId, index)) { |