Core/Commands: Fixed .bnetaccount gameaccountcreate command generating too long passwords
Port From (https://github.com/TrinityCore/TrinityCore/commit/6879440acb03bf4ab567b0ad960e64431ab31a6a)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user