diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-01 12:48:28 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-01 12:48:28 -0600 |
commit | da61b7e9cb40e75ad0d74cc64853bf1b08d0a031 (patch) | |
tree | a1d5157ac530b42ce4ca2c316fcaa419cc23c01c /src/net | |
parent | 83fd36204202b4b5cca7e6cdb37c025919f32f08 (diff) | |
download | mana-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.gz mana-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.bz2 mana-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.xz mana-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.zip |
Finish merging registration dialog
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/generalhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/logindata.h | 4 | ||||
-rw-r--r-- | src/net/tmwserv/generalhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwserv/loginhandler.cpp | 3 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/net/ea/generalhandler.cpp b/src/net/ea/generalhandler.cpp index 1dde3b3f..fac3dcd1 100644 --- a/src/net/ea/generalhandler.cpp +++ b/src/net/ea/generalhandler.cpp @@ -207,6 +207,7 @@ void GeneralHandler::guiWindowsLoaded() { partyTab = new PartyTab; inventoryWindow->setSplitAllowed(false); + RegisterDialog::setEmail(NULL); RegisterDialog::setGender(&netToken.sex); skillDialog->loadSkills("ea-skills.xml"); diff --git a/src/net/logindata.h b/src/net/logindata.h index 5e72f8fd..c0ca0a4e 100644 --- a/src/net/logindata.h +++ b/src/net/logindata.h @@ -33,8 +33,6 @@ struct LoginData std::string password; std::string newPassword; std::string updateHost; - std::string email; - std::string newEmail; bool remember; /**< Whether to store the username. */ bool registerLogin; /**< Whether an account is being registered. */ @@ -45,8 +43,6 @@ struct LoginData password.clear(); newPassword.clear(); updateHost.clear(); - email.clear(); - newEmail.clear(); } }; diff --git a/src/net/tmwserv/generalhandler.cpp b/src/net/tmwserv/generalhandler.cpp index 81bb46be..68f8c918 100644 --- a/src/net/tmwserv/generalhandler.cpp +++ b/src/net/tmwserv/generalhandler.cpp @@ -21,6 +21,7 @@ #include "net/tmwserv/generalhandler.h" +#include "gui/changeemaildialog.h" #include "gui/inventorywindow.h" #include "gui/partywindow.h" #include "gui/register.h" @@ -61,6 +62,7 @@ Net::Connection *accountServerConnection = 0; namespace TmwServ { +std::string userEmail = ""; std::string netToken = ""; ServerInfo gameServer; ServerInfo chatServer; @@ -155,8 +157,10 @@ void GeneralHandler::tick() void GeneralHandler::guiWindowsLoaded() { + ChangeEmailDialog::setEmail(*userEmail); inventoryWindow->setSplitAllowed(true); partyWindow->clearPartyName(); + RegisterDialog::setEmail(&userEmail); RegisterDialog::setGender(NULL); skillDialog->loadSkills("tmw-skills.xml"); specialsWindow->loadSpecials("specials.xml"); diff --git a/src/net/tmwserv/loginhandler.cpp b/src/net/tmwserv/loginhandler.cpp index 74b8abad..81079a3a 100644 --- a/src/net/tmwserv/loginhandler.cpp +++ b/src/net/tmwserv/loginhandler.cpp @@ -39,6 +39,7 @@ Net::LoginHandler *loginHandler; extern Net::Connection *accountServerConnection; namespace TmwServ { +extern std::string userEmail; LoginHandler::LoginHandler() { @@ -333,7 +334,7 @@ void LoginHandler::registerAccount(LoginData *loginData) 0, // client version loginData->username, loginData->password, - loginData->email); + userEmail); } void LoginHandler::unregisterAccount(const std::string &username, |