94 {
96 return;
97
98
99
100
101
102 uint32 playerGuid = accountId;
104 std::string systemNote = "ERROR";
105
106
107
108 switch (aType)
109 {
111 systemNote = "Logged on Successful AccountLogin";
112 break;
114 systemNote = "Logged on Failed AccountLogin";
115 break;
117 systemNote = "Logged on Successful Account Password Change";
118 break;
120 systemNote = "Logged on Failed Account Password Change";
121 break;
123 systemNote = "Logged on Successful Account Email Change";
124 break;
126 systemNote = "Logged on Failed Account Email Change";
127 break;
128
129
130
131
133 default:
134 systemNote = "ERROR! Unknown action!";
135 break;
136 }
137
138
139
140
142 {
143
144
146
148 stmt->
SetData(1, characterGuid);
151 stmt->
SetData(4, systemNote.c_str());
153 }
154 else
155 {
157
159 stmt->
SetData(1, characterGuid);
162 stmt->
SetData(4, systemNote.c_str());
164 }
165 return;
166 }
std::uint32_t uint32
Definition: Define.h:108
DatabaseWorkerPool< LoginDatabaseConnection > LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
@ LOGIN_INS_ALDL_IP_LOGGING
Definition: LoginDatabase.h:103
@ LOGIN_INS_FACL_IP_LOGGING
Definition: LoginDatabase.h:104
@ CONFIG_IP_BASED_ACTION_LOGGING
Definition: IWorld.h:156
@ ACCOUNT_CHANGE_PW
Definition: action_ip_logger.cpp:30
@ ACCOUNT_CHANGE_EMAIL_FAIL
Definition: action_ip_logger.cpp:33
@ ACCOUNT_LOGIN
Definition: action_ip_logger.cpp:28
@ ACCOUNT_CHANGE_PW_FAIL
Definition: action_ip_logger.cpp:31
@ UNKNOWN_ACTION
Definition: action_ip_logger.cpp:43
@ ACCOUNT_CHANGE_EMAIL
Definition: action_ip_logger.cpp:32
@ ACCOUNT_FAIL_LOGIN
Definition: action_ip_logger.cpp:29
#define sWorld
Definition: World.h:447
Definition: PreparedStatement.h:158
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition: PreparedStatement.h:78