92 {
94 return;
95
96
97
98
99
100 uint32 playerGuid = accountId;
102 std::string systemNote = "ERROR";
103
104
105
106 switch (aType)
107 {
109 systemNote = "Logged on Successful AccountLogin";
110 break;
112 systemNote = "Logged on Failed AccountLogin";
113 break;
115 systemNote = "Logged on Successful Account Password Change";
116 break;
118 systemNote = "Logged on Failed Account Password Change";
119 break;
121 systemNote = "Logged on Successful Account Email Change";
122 break;
124 systemNote = "Logged on Failed Account Email Change";
125 break;
126
127
128
129
131 default:
132 systemNote = "ERROR! Unknown action!";
133 break;
134 }
135
136
137
138
140 {
141
142
144
146 stmt->
SetData(1, characterGuid);
149 stmt->
SetData(4, systemNote.c_str());
151 }
152 else
153 {
155
157 stmt->
SetData(1, characterGuid);
160 stmt->
SetData(4, systemNote.c_str());
162 }
163 return;
164 }
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:154
@ ACCOUNT_CHANGE_PW
Definition: action_ip_logger.cpp:28
@ ACCOUNT_CHANGE_EMAIL_FAIL
Definition: action_ip_logger.cpp:31
@ ACCOUNT_LOGIN
Definition: action_ip_logger.cpp:26
@ ACCOUNT_CHANGE_PW_FAIL
Definition: action_ip_logger.cpp:29
@ UNKNOWN_ACTION
Definition: action_ip_logger.cpp:41
@ ACCOUNT_CHANGE_EMAIL
Definition: action_ip_logger.cpp:30
@ ACCOUNT_FAIL_LOGIN
Definition: action_ip_logger.cpp:27
#define sWorld
Definition: World.h:451
Definition: PreparedStatement.h:158
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition: PreparedStatement.h:78