mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11736] Hide passwords from logs
* DB connection * chat/console password changes commands.
This commit is contained in:
parent
f4802ab4c4
commit
a0ff5f4536
9 changed files with 68 additions and 57 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue