summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-19 01:05:22 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-19 01:05:22 +0300
commit990c96c992c4cf21173c904dd85f0b378e1c89b0 (patch)
treea87e8b060a3bae6869e8945082fb9b11a6a60957 /src/net/tmwa
parent3945c533f8930093b6101b00827a37d6bbde0fb4 (diff)
downloadmanaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.gz
manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.bz2
manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.xz
manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.zip
Hide passwords from packets logs.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/loginhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index cac8df623..bdc944d63 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -118,8 +118,8 @@ void LoginHandler::changePassword(const std::string &username A_UNUSED,
const std::string &newPassword)
{
MessageOut outMsg(CMSG_CHAR_PASSWORD_CHANGE);
- outMsg.writeString(oldPassword, 24);
- outMsg.writeString(newPassword, 24);
+ outMsg.writeStringNoLog(oldPassword, 24);
+ outMsg.writeStringNoLog(newPassword, 24);
}
void LoginHandler::sendLoginRegister(const std::string &username,
@@ -128,7 +128,7 @@ void LoginHandler::sendLoginRegister(const std::string &username,
MessageOut outMsg(0x0064);
outMsg.writeInt32(0); // client version
outMsg.writeString(username, 24);
- outMsg.writeString(password, 24);
+ outMsg.writeStringNoLog(password, 24);
/*
* eAthena calls the last byte "client version 2", but it isn't used at