summaryrefslogtreecommitdiff
path: root/src/logindata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logindata.h')
-rw-r--r--src/logindata.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/logindata.h b/src/logindata.h
index 410d2e73..ae89eb5f 100644
--- a/src/logindata.h
+++ b/src/logindata.h
@@ -24,21 +24,51 @@
#include <string>
+#include <string>
+
struct LoginData
{
std::string username;
std::string password;
+ std::string newPassword;
std::string hostname;
std::string updateHost;
+#ifdef TMWSERV_SUPPORT
+ std::string email;
+ std::string newEmail;
+#endif
short port;
+#ifdef EATHENA_SUPPORT
int account_ID;
int session_ID1;
int session_ID2;
char sex;
+#endif
bool remember; /**< Whether to store the username and host. */
bool registerLogin; /**< Whether an account is being registered. */
-};
+ void clear()
+ {
+ username.clear();
+ password.clear();
+ newPassword.clear();
+ hostname.clear();
+ updateHost.clear();
+#ifdef TMWSERV_SUPPORT
+ email.clear();
+ newEmail.clear();
#endif
+ port = 0;
+
+#ifdef EATHENA_SUPPORT
+ account_ID = 0;
+ session_ID1 = 0;
+ session_ID2 = 0;
+ sex = 0;
+#endif
+ };
+};
+
+#endif // LOGINDATA_H