[11736] Hide passwords from logs

* DB connection
* chat/console password changes commands.
This commit is contained in:
VladimirMangos 2011-07-13 05:38:43 +04:00
parent f4802ab4c4
commit a0ff5f4536
9 changed files with 68 additions and 57 deletions

View file

@ -1226,7 +1226,12 @@ bool ChatHandler::HandleAccountSetPasswordCommand(char* args)
return false;
}
return true;
// OK, but avoid normal report for hide passwords, but log use command for anyone
char msg[100];
snprintf( msg, 100, ".account set password %s *** ***", account_name.c_str());
LogCommand(msg);
SetSentErrorMessage(true);
return false;
}