diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2012-02-04 11:54:32 +0100 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2012-02-04 12:00:56 +0100 |
commit | 1d6723caf7def24c567b5fca260bd55ae6423952 (patch) | |
tree | f41bbe24786df6e4d9899061b06772fff97f1ebc /src | |
parent | 66850d2dbc9798619159688dcba0cc912247ac02 (diff) | |
download | Mana-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
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 3 |
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; |