93 {
95 return;
96
97
98
99
100
101 uint32 playerGuid = accountId;
103 std::string systemNote = "ERROR";
104
105
106
107 switch (aType)
108 {
110 systemNote = "Logged on Successful AccountLogin";
111 break;
113 systemNote = "Logged on Failed AccountLogin";
114 break;
116 systemNote = "Logged on Successful Account Password Change";
117 break;
119 systemNote = "Logged on Failed Account Password Change";
120 break;
122 systemNote = "Logged on Successful Account Email Change";
123 break;
125 systemNote = "Logged on Failed Account Email Change";
126 break;
127
128
129
130
132 default:
133 systemNote = "ERROR! Unknown action!";
134 break;
135 }
136
137
138
139
141 {
142
143
145
147 stmt->
SetData(1, characterGuid);
150 stmt->
SetData(4, systemNote.c_str());
152 }
153 else
154 {
156
158 stmt->
SetData(1, characterGuid);
161 stmt->
SetData(4, systemNote.c_str());
163 }
164 return;
165 }
std::uint32_t uint32
Definition: Define.h:107
@ ACCOUNT_CHANGE_PW
Definition: action_ip_logger.cpp:29
@ ACCOUNT_CHANGE_EMAIL_FAIL
Definition: action_ip_logger.cpp:32
@ ACCOUNT_LOGIN
Definition: action_ip_logger.cpp:27
@ ACCOUNT_CHANGE_PW_FAIL
Definition: action_ip_logger.cpp:30
@ UNKNOWN_ACTION
Definition: action_ip_logger.cpp:42
@ ACCOUNT_CHANGE_EMAIL
Definition: action_ip_logger.cpp:31
@ ACCOUNT_FAIL_LOGIN
Definition: action_ip_logger.cpp:28
@ CONFIG_IP_BASED_ACTION_LOGGING
Definition: IWorld.h:152
@ LOGIN_INS_ALDL_IP_LOGGING
Definition: LoginDatabase.h:106
@ LOGIN_INS_FACL_IP_LOGGING
Definition: LoginDatabase.h:107
DatabaseWorkerPool< LoginDatabaseConnection > LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
#define sWorld
Definition: World.h:443
Definition: PreparedStatement.h:157
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition: PreparedStatement.h:77