2026-02-02 12:24:50 -08:00
|
|
|
#include "auth/auth_opcodes.hpp"
|
|
|
|
|
|
|
|
|
|
namespace wowee {
|
|
|
|
|
namespace auth {
|
|
|
|
|
|
|
|
|
|
const char* getAuthResultString(AuthResult result) {
|
|
|
|
|
switch (result) {
|
|
|
|
|
case AuthResult::SUCCESS: return "Success";
|
2026-02-05 12:17:09 -08:00
|
|
|
case AuthResult::UNKNOWN0: return "Unknown error (0x01)";
|
|
|
|
|
case AuthResult::UNKNOWN1: return "Unknown error (0x02)";
|
|
|
|
|
case AuthResult::ACCOUNT_BANNED: return "This account has been banned";
|
|
|
|
|
case AuthResult::ACCOUNT_INVALID: return "Account not found - check your username";
|
|
|
|
|
case AuthResult::PASSWORD_INVALID: return "Incorrect password";
|
|
|
|
|
case AuthResult::ALREADY_ONLINE: return "This account is already logged in";
|
|
|
|
|
case AuthResult::OUT_OF_CREDIT: return "Account out of credit/time";
|
|
|
|
|
case AuthResult::BUSY: return "Server is busy - try again later";
|
|
|
|
|
case AuthResult::BUILD_INVALID:
|
|
|
|
|
return "Version mismatch - this client is WotLK 3.3.5a (build 12340). "
|
|
|
|
|
"The server requires a different client version";
|
|
|
|
|
case AuthResult::BUILD_UPDATE:
|
|
|
|
|
return "Client update required - the server expects a different build version. "
|
|
|
|
|
"This client only supports WotLK 3.3.5a (build 12340)";
|
|
|
|
|
case AuthResult::INVALID_SERVER: return "Invalid server";
|
|
|
|
|
case AuthResult::ACCOUNT_SUSPENDED: return "This account has been suspended";
|
|
|
|
|
case AuthResult::ACCESS_DENIED: return "Access denied";
|
|
|
|
|
case AuthResult::SURVEY: return "Survey required";
|
|
|
|
|
case AuthResult::PARENTAL_CONTROL: return "Blocked by parental controls";
|
|
|
|
|
case AuthResult::LOCK_ENFORCED: return "Account locked - check your email";
|
|
|
|
|
case AuthResult::TRIAL_EXPIRED: return "Trial period has expired";
|
|
|
|
|
case AuthResult::BATTLE_NET: return "Battle.net error";
|
|
|
|
|
default: return "Unknown error";
|
2026-02-02 12:24:50 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace auth
|
|
|
|
|
} // namespace wowee
|