blob: e37511f3850c378b36ba201366e73af962a27564 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#pragma once
// ladmin.hpp - dummy header to make Make dependencies work.
//
// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
//
// This file is part of The Mana World (Athena server)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#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
|