From 10f59701112130cf953a2af7ef4ae82d9d823fe6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Dec 2012 01:42:53 +0300 Subject: Add support for register from browser on servers with disabled registration. --- src/net/logindata.h | 3 +++ src/net/serverinfo.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/net') diff --git a/src/net/logindata.h b/src/net/logindata.h index 1aed31b19..ed29f7736 100644 --- a/src/net/logindata.h +++ b/src/net/logindata.h @@ -38,6 +38,7 @@ class LoginData final updateType(0), email(""), captchaResponse(""), + registerUrl(""), gender(GENDER_UNSPECIFIED), remember(false), registerLogin(false) @@ -65,6 +66,7 @@ class LoginData final std::string email; std::string captchaResponse; + std::string registerUrl; Gender gender; @@ -84,6 +86,7 @@ class LoginData final updateType = Upd_Normal; email.clear(); captchaResponse.clear(); + registerUrl.clear(); gender = GENDER_UNSPECIFIED; lastLogin.clear(); resetCharacterSlots(); diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index d58bd3286..ed9e699b0 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -50,6 +50,7 @@ public: unsigned short port; std::string description; + std::string registerUrl; VersionString version; bool save; @@ -68,6 +69,7 @@ public: hostname(info.hostname), port(info.port), description(info.description), + registerUrl(info.registerUrl), save(info.save) { version.first = info.version.first; @@ -86,6 +88,7 @@ public: hostname.clear(); port = 0; description.clear(); + registerUrl.clear(); version.first = 0; version.second.clear(); save = false; -- cgit v1.2.3-70-g09d2