diff options
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index 4fe225de6..99708df60 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -125,18 +125,20 @@ void LoginHandler::disconnect() mNetwork->disconnect(); } -void LoginHandler::changePassword(const std::string &username A_UNUSED, - const std::string &oldPassword, - const std::string &newPassword) const +void LoginHandler::changePassword(const std::string &restrict username + A_UNUSED, + const std::string &restrict oldPassword, + const std::string &restrict newPassword) + const { MessageOut outMsg(CMSG_CHAR_PASSWORD_CHANGE); outMsg.writeStringNoLog(oldPassword, 24); outMsg.writeStringNoLog(newPassword, 24); } -void LoginHandler::sendLoginRegister(const std::string &username, - const std::string &password, - const std::string &email) const +void LoginHandler::sendLoginRegister(const std::string &restrict username, + const std::string &restrict password, + const std::string &restrict email) const { if (email.empty()) { |