AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Functions | |
AccountOpResult | CreateAccount (std::string username, std::string password) |
AccountOpResult | ChangeEmail (uint32 accountId, std::string newEmail) |
AccountOpResult | DeleteAccount (uint32 accountId) |
AccountOpResult | ChangeUsername (uint32 accountId, std::string newUsername, std::string newPassword) |
AccountOpResult | ChangePassword (uint32 accountId, std::string newPassword) |
uint32 | GetId (std::string const &username) |
uint32 | GetSecurity (uint32 accountId) |
uint32 | GetSecurity (uint32 accountId, int32 realmId) |
bool | GetName (uint32 accountId, std::string &name) |
bool | CheckPassword (uint32 accountId, std::string password) |
uint32 | GetCharactersCount (uint32 accountId) |
bool | IsPlayerAccount (uint32 gmlevel) |
bool | IsAdminAccount (uint32 gmlevel) |
bool | IsConsoleAccount (uint32 gmlevel) |
AccountOpResult AccountMgr::ChangeEmail | ( | uint32 | accountId, |
std::string | newEmail | ||
) |
References AOR_EMAIL_TOO_LONG, AOR_NAME_NOT_EXIST, AOR_OK, GetName(), LOGIN_UPD_EMAIL, LoginDatabase, MAX_EMAIL_STR, PreparedStatementBase::SetData(), sScriptMgr, utf8length(), and Utf8ToUpperOnlyLatin().
Referenced by account_commandscript::HandleAccountSetEmailCommand().
AccountOpResult AccountMgr::ChangePassword | ( | uint32 | accountId, |
std::string | newPassword | ||
) |
References AOR_NAME_NOT_EXIST, AOR_OK, AOR_PASS_TOO_LONG, GetName(), LOGIN_UPD_LOGON, LoginDatabase, Acore::Crypto::SRP6::MakeRegistrationData(), MAX_PASS_STR, PreparedStatementBase::SetData(), sScriptMgr, utf8length(), and Utf8ToUpperOnlyLatin().
Referenced by account_commandscript::HandleAccountPasswordCommand(), and account_commandscript::HandleAccountSetPasswordCommand().
AccountOpResult AccountMgr::ChangeUsername | ( | uint32 | accountId, |
std::string | newUsername, | ||
std::string | newPassword | ||
) |
References AOR_NAME_NOT_EXIST, AOR_NAME_TOO_LONG, AOR_OK, AOR_PASS_TOO_LONG, LOGIN_SEL_ACCOUNT_BY_ID, LOGIN_UPD_LOGON, LOGIN_UPD_USERNAME, LoginDatabase, Acore::Crypto::SRP6::MakeRegistrationData(), MAX_ACCOUNT_STR, MAX_PASS_STR, PreparedStatementBase::SetData(), utf8length(), and Utf8ToUpperOnlyLatin().
bool AccountMgr::CheckPassword | ( | uint32 | accountId, |
std::string | password | ||
) |
References Acore::Crypto::SRP6::CheckLogin(), GetName(), LOGIN_SEL_CHECK_PASSWORD, LoginDatabase, Acore::Crypto::SRP6::SALT_LENGTH, PreparedStatementBase::SetData(), Utf8ToUpperOnlyLatin(), and Acore::Crypto::SRP6::VERIFIER_LENGTH.
Referenced by account_commandscript::HandleAccountPasswordCommand(), and ns1__executeCommand().
AccountOpResult AccountMgr::CreateAccount | ( | std::string | username, |
std::string | password | ||
) |
References AOR_NAME_ALREADY_EXIST, AOR_NAME_TOO_LONG, AOR_OK, AOR_PASS_TOO_LONG, CONFIG_EXPANSION, GetId(), LOGIN_INS_ACCOUNT, LOGIN_INS_REALM_CHARACTERS_INIT, LoginDatabase, Acore::Crypto::SRP6::MakeRegistrationData(), MAX_ACCOUNT_STR, MAX_PASS_STR, PreparedStatementBase::SetData(), sWorld, utf8length(), and Utf8ToUpperOnlyLatin().
Referenced by account_commandscript::HandleAccountCreateCommand().
AccountOpResult AccountMgr::DeleteAccount | ( | uint32 | accountId | ) |
References AOR_NAME_NOT_EXIST, AOR_OK, CHAR_DEL_ACCOUNT_DATA, CHAR_DEL_CHARACTER_BAN, CHAR_DEL_TUTORIALS, CHAR_SEL_CHARS_BY_ACCOUNT_ID, CharacterDatabase, Player::DeleteFromDB(), ObjectAccessor::FindPlayer(), ObjectGuid::GetCounter(), WorldSession::KickPlayer(), LOGIN_DEL_ACCOUNT, LOGIN_DEL_ACCOUNT_ACCESS, LOGIN_DEL_ACCOUNT_BANNED, LOGIN_DEL_ACCOUNT_MUTED, LOGIN_DEL_REALM_CHARACTERS, LOGIN_SEL_ACCOUNT_BY_ID, LoginDatabase, WorldSession::LogoutPlayer(), PreparedStatementBase::SetData(), and sScriptMgr.
Referenced by account_commandscript::HandleAccountDeleteCommand().
References CHAR_SEL_SUM_CHARS, CharacterDatabase, and PreparedStatementBase::SetData().
Referenced by character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandleCharacterDeletedRestoreHelper(), and PlayerDumpReader::LoadDump().
uint32 AccountMgr::GetId | ( | std::string const & | username | ) |
References LOGIN_GET_ACCOUNT_ID_BY_USERNAME, LoginDatabase, and PreparedStatementBase::SetData().
Referenced by BanMgr::BanAccount(), CreateAccount(), account_commandscript::HandleAccountDeleteCommand(), account_commandscript::HandleAccountRemoveLockCountryCommand(), account_commandscript::HandleAccountSet2FACommand(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetGmLevelCommand(), account_commandscript::HandleAccountSetPasswordCommand(), ban_commandscript::HandleBanInfoAccountCommand(), character_commandscript::HandleCharacterChangeAccountCommand(), misc_commandscript::HandleMuteInfoCommand(), ns1__executeCommand(), BanMgr::RemoveBanAccount(), and Acore::ChatCommands::AccountIdentifier::TryConsume().
bool AccountMgr::GetName | ( | uint32 | accountId, |
std::string & | name | ||
) |
References LOGIN_GET_USERNAME_BY_ID, LoginDatabase, and PreparedStatementBase::SetData().
Referenced by Warden::ApplyPenalty(), BanMgr::BanAccountByPlayerName(), ChangeEmail(), ChangePassword(), CheckPassword(), WorldSession::DosProtection::EvaluateOpcode(), character_commandscript::GetDeletedCharacterInfoList(), account_commandscript::HandleAccountSetAddonCommand(), ban_commandscript::HandleBanListHelper(), character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandleCharacterEraseCommand(), go_ulduar_pure_saronite_deposit::OnGossipHello(), and Acore::ChatCommands::AccountIdentifier::TryConsume().
References LOGIN_GET_ACCOUNT_ACCESS_GMLEVEL, LoginDatabase, SEC_PLAYER, and PreparedStatementBase::SetData().
Referenced by account_commandscript::HandleAccountSetGmLevelCommand(), WorldSession::HandleAddFriendOpcode(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), ChatHandler::HasLowerSecurityAccount(), and ns1__executeCommand().
References LOGIN_GET_GMLEVEL_BY_REALMID, LoginDatabase, SEC_PLAYER, and PreparedStatementBase::SetData().
bool AccountMgr::IsAdminAccount | ( | uint32 | gmlevel | ) |
References SEC_ADMINISTRATOR, and SEC_CONSOLE.
Referenced by ticket_commandscript::HandleGMTicketAssignToCommand(), WorldSession::HandleWhoisOpcode(), and WorldSession::HandleWorldTeleportOpcode().
bool AccountMgr::IsConsoleAccount | ( | uint32 | gmlevel | ) |
References SEC_CONSOLE.
Referenced by account_commandscript::HandleAccountSetGmLevelCommand().
bool AccountMgr::IsPlayerAccount | ( | uint32 | gmlevel | ) |
References SEC_PLAYER.
Referenced by ChatHandler::_ParseCommands(), World::AddSession_(), SocialMgr::BroadcastToFriendListers(), AchievementMgr::CompletedAchievement(), Player::Create(), Channel::FlagsNotify(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharFactionOrRaceChangeCallback(), misc_commandscript::HandleCommentatorCommand(), misc_commandscript::HandleDevCommand(), gm_commandscript::HandleGMChatCommand(), gm_commandscript::HandleGMListIngameCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), WorldSession::HandleMessagechatOpcode(), WorldSocket::HandlePing(), misc_commandscript::HandleReviveCommand(), WorldSession::HandleSendMail(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), Player::IsVisibleGloballyFor(), Channel::JoinChannel(), Channel::JoinNotify(), Channel::LeaveNotify(), Channel::List(), Player::LoadFromDB(), LogCommandUsage(), Player::Player(), World::SendGlobalGMMessage(), ChatHandler::SendGMText(), Player::TeleportTo(), and Player::UpdateSpeakTime().