From b43ed947efd36471a0608d103faed95e61f7b124 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Dec 2012 18:16:27 +0300 Subject: Reset saved in memory password if login server return "wrong password". --- src/net/ea/loginhandler.cpp | 3 +++ 1 file changed, 3 insertions(+) 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."); -- cgit v1.2.3-70-g09d2