summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-09 18:16:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-09 18:16:27 +0300
commitb43ed947efd36471a0608d103faed95e61f7b124 (patch)
treea64246c17e6543d87b818317d9f096c3fd653a17
parent7b5bf01f9fc6204ea94689ec15c41b1f56ab0e47 (diff)
downloadmv-b43ed947efd36471a0608d103faed95e61f7b124.tar.gz
mv-b43ed947efd36471a0608d103faed95e61f7b124.tar.bz2
mv-b43ed947efd36471a0608d103faed95e61f7b124.tar.xz
mv-b43ed947efd36471a0608d103faed95e61f7b124.zip
Reset saved in memory password if login server return "wrong password".
-rw-r--r--src/net/ea/loginhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index ac4f0466c..3f8c22502 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -26,6 +26,8 @@
#include "configuration.h"
#include "logger.h"
+#include "gui/logindialog.h"
+
#include "utils/dtor.h"
#include "utils/gettext.h"
#include "utils/paths.h"
@@ -231,6 +233,7 @@ void LoginHandler::processLoginError(Net::MessageIn &msg)
break;
case 1:
errorMessage = _("Wrong password.");
+ LoginDialog::savedPassword = "";
break;
case 2:
errorMessage = _("Account expired.");