summaryrefslogtreecommitdiff
path: root/src/admin/ladmin.hpp
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-23 15:45:32 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-23 15:45:32 +0000
commit9a3566484f2345db599552a6c18311978a0071ea (patch)
tree14495e785cfdcb3d8678a6edeeab9438a5f3af2e /src/admin/ladmin.hpp
parent45b741f89800d7aad76ed0831416a8e7571886d1 (diff)
parent5cdf930c6596b778db40138726163b9dfd68ae4f (diff)
downloadtmwa-9a3566484f2345db599552a6c18311978a0071ea.tar.gz
tmwa-9a3566484f2345db599552a6c18311978a0071ea.tar.bz2
tmwa-9a3566484f2345db599552a6c18311978a0071ea.tar.xz
tmwa-9a3566484f2345db599552a6c18311978a0071ea.zip
Merge branch 'tmwa-admin-reg2-mod' into 'master'
Tmwa admin reg2 mod, required for Mirror Lake See merge request legacy/tmwa!235
Diffstat (limited to 'src/admin/ladmin.hpp')
-rw-r--r--src/admin/ladmin.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/admin/ladmin.hpp b/src/admin/ladmin.hpp
index 94783ac..e37511f 100644
--- a/src/admin/ladmin.hpp
+++ b/src/admin/ladmin.hpp
@@ -20,7 +20,43 @@
#include "fwd.hpp"
+#include "../net/socket.hpp"
+#include "../net/timestamp-utils.hpp"
+
+#include "../mmo/consts.hpp"
+#include "../mmo/enums.hpp"
+
+#include "../proto2/net-GlobalReg.hpp"
namespace tmwa
{
+namespace admin
+{
+struct login_session_data : SessionData
+{
+ AccountId account_id;
+ int login_id1, login_id2;
+ IP4Address client_ip;
+ bool verified;
+ short consumed_by;
+};
+
+struct AuthData
+{
+ AccountId account_id;
+ SEX sex;
+ AccountName userid;
+ AccountCrypt pass;
+ timestamp_milliseconds_buffer lastlogin;
+ int logincount;
+ int state; // packet 0x006a value + 1 (0: compte OK)
+ AccountEmail email; // e-mail (by default: a@a.com)
+ timestamp_seconds_buffer error_message; // Message of error code #6 = Your are Prohibited to log in until %s (packet 0x006a)
+ TimeT ban_until_time; // # of seconds 1/1/1970 (timestamp): ban time limit of the account (0 = no ban)
+ IP4Address last_ip; // save of last IP of connection
+ VString<254> memo; // a memo field
+ int account_reg2_num;
+ Array<GlobalReg, ACCOUNT_REG2_NUM> account_reg2;
+};
+} // namespace admin
} // namespace tmwa