summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2012-02-04 11:54:32 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2012-02-04 12:00:56 +0100
commit1d6723caf7def24c567b5fca260bd55ae6423952 (patch)
treef41bbe24786df6e4d9899061b06772fff97f1ebc
parent66850d2dbc9798619159688dcba0cc912247ac02 (diff)
downloadmana-1d6723caf7def24c567b5fca260bd55ae6423952.tar.gz
mana-1d6723caf7def24c567b5fca260bd55ae6423952.tar.bz2
mana-1d6723caf7def24c567b5fca260bd55ae6423952.tar.xz
mana-1d6723caf7def24c567b5fca260bd55ae6423952.zip
Removing password from memory
If the player switches login, then the password field in the login window should be empty. This was not the case after registering or password change. Reviewed-by: Ablu, Bertram
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 538ecb54..2dcb3ba3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -902,6 +902,7 @@ int Client::exec()
case STATE_REGISTER_ATTEMPT:
logger->log("Username is %s", loginData.username.c_str());
Net::getLoginHandler()->registerAccount(&loginData);
+ loginData.password = "";
break;
case STATE_CHANGEPASSWORD:
@@ -921,7 +922,7 @@ int Client::exec()
showOkDialog(_("Password Change"),
_("Password changed successfully!"),
STATE_CHAR_SELECT);
- loginData.password = loginData.newPassword;
+ loginData.password = "";
loginData.newPassword = "";
break;