![]() |
TrinityCore
|
Functions | |
| TC_GAME_API AccountOpResult | CreateBattlenetAccount (std::string email, std::string password, bool withGameAccount, std::string *gameAccountName) |
| TC_GAME_API AccountOpResult | ChangePassword (uint32 accountId, std::string newPassword) |
| TC_GAME_API bool | CheckPassword (uint32 accountId, std::string password) |
| TC_GAME_API AccountOpResult | LinkWithGameAccount (std::string_view email, std::string_view gameAccountName) |
| TC_GAME_API AccountOpResult | UnlinkGameAccount (std::string_view gameAccountName) |
| TC_GAME_API uint32 | GetId (std::string_view username) |
| TC_GAME_API bool | GetName (uint32 accountId, std::string &name) |
| TC_GAME_API uint32 | GetIdByGameAccount (uint32 gameAccountId) |
| TC_GAME_API QueryCallback | GetIdByGameAccountAsync (uint32 gameAccountId) |
| TC_GAME_API uint8 | GetMaxIndex (uint32 accountId) |
| TC_GAME_API std::string | GetSrpUsername (std::string name) |
| AccountOpResult Battlenet::AccountMgr::ChangePassword | ( | uint32 | accountId, |
| std::string | newPassword | ||
| ) |
Definition at line 71 of file BattlenetAccountMgr.cpp.
References AOR_NAME_NOT_EXIST, AOR_OK, AOR_PASS_TOO_LONG, AsUnderlyingType(), GetName(), GetSrpUsername(), LOGIN_UPD_BNET_LOGON, LoginDatabase, MAX_BNET_PASS_STR, PreparedStatementBase::setBinary(), PreparedStatementBase::setInt8(), PreparedStatementBase::setUInt32(), utf8length(), and v2.
Referenced by battlenet_account_commandscript::HandleAccountPasswordCommand(), and battlenet_account_commandscript::HandleAccountSetPasswordCommand().
| bool Battlenet::AccountMgr::CheckPassword | ( | uint32 | accountId, |
| std::string | password | ||
| ) |
Definition at line 93 of file BattlenetAccountMgr.cpp.
References GetName(), LOGIN_SEL_BNET_CHECK_PASSWORD, LoginDatabase, Trinity::Crypto::SRP::SALT_LENGTH, PreparedStatementBase::setUInt32(), Utf8ToUpperOnlyLatin(), v1, and v2.
Referenced by battlenet_account_commandscript::HandleAccountPasswordCommand().
| AccountOpResult Battlenet::AccountMgr::CreateBattlenetAccount | ( | std::string | email, |
| std::string | password, | ||
| bool | withGameAccount, | ||
| std::string * | gameAccountName | ||
| ) |
Definition at line 34 of file BattlenetAccountMgr.cpp.
References AOR_NAME_ALREADY_EXIST, AOR_NAME_TOO_LONG, AOR_OK, AOR_PASS_TOO_LONG, ASSERT, AsUnderlyingType(), AccountMgr::CreateAccount(), GetId(), GetSrpUsername(), AccountMgr::instance(), LOGIN_INS_BNET_ACCOUNT, LoginDatabase, MAX_BNET_EMAIL_STR, MAX_BNET_PASS_STR, MAX_PASS_STR, PreparedStatementBase::setBinary(), PreparedStatementBase::setInt8(), PreparedStatementBase::setString(), utf8length(), Utf8ToUpperOnlyLatin(), and v2.
Referenced by battlenet_account_commandscript::HandleAccountCreateCommand().
| uint32 Battlenet::AccountMgr::GetId | ( | std::string_view | username | ) |
Definition at line 160 of file BattlenetAccountMgr.cpp.
References LOGIN_SEL_BNET_ACCOUNT_ID_BY_EMAIL, LoginDatabase, and PreparedStatementBase::setString().
Referenced by CreateBattlenetAccount(), battlenet_account_commandscript::HandleAccountSetPasswordCommand(), battlenet_account_commandscript::HandleGameAccountCreateCommand(), and LinkWithGameAccount().
Definition at line 183 of file BattlenetAccountMgr.cpp.
References LOGIN_SEL_BNET_ACCOUNT_ID_BY_GAME_ACCOUNT, LoginDatabase, and PreparedStatementBase::setUInt32().
Referenced by WorldPackets::Query::PlayerGuidLookupData::Initialize(), LinkWithGameAccount(), and UnlinkGameAccount().
| QueryCallback Battlenet::AccountMgr::GetIdByGameAccountAsync | ( | uint32 | gameAccountId | ) |
Definition at line 193 of file BattlenetAccountMgr.cpp.
References LOGIN_SEL_BNET_ACCOUNT_ID_BY_GAME_ACCOUNT, LoginDatabase, and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandleSendMail().
Definition at line 200 of file BattlenetAccountMgr.cpp.
References LOGIN_SEL_BNET_MAX_ACCOUNT_INDEX, LoginDatabase, and PreparedStatementBase::setUInt32().
Referenced by battlenet_account_commandscript::HandleGameAccountCreateCommand(), and LinkWithGameAccount().
| bool Battlenet::AccountMgr::GetName | ( | uint32 | accountId, |
| std::string & | name | ||
| ) |
Definition at line 170 of file BattlenetAccountMgr.cpp.
References LOGIN_SEL_BNET_ACCOUNT_EMAIL_BY_ID, LoginDatabase, and PreparedStatementBase::setUInt32().
Referenced by ChangePassword(), and CheckPassword().
| std::string Battlenet::AccountMgr::GetSrpUsername | ( | std::string | name | ) |
Definition at line 211 of file BattlenetAccountMgr.cpp.
References ByteArrayToHexStr(), Trinity::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), and Utf8ToUpperOnlyLatin().
Referenced by ChangePassword(), and CreateBattlenetAccount().
| AccountOpResult Battlenet::AccountMgr::LinkWithGameAccount | ( | std::string_view | email, |
| std::string_view | gameAccountName | ||
| ) |
Definition at line 122 of file BattlenetAccountMgr.cpp.
References AOR_ACCOUNT_BAD_LINK, AOR_NAME_NOT_EXIST, AOR_OK, AccountMgr::GetId(), GetId(), GetIdByGameAccount(), GetMaxIndex(), LOGIN_UPD_BNET_GAME_ACCOUNT_LINK, LoginDatabase, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by battlenet_account_commandscript::HandleAccountLinkCommand().
| AccountOpResult Battlenet::AccountMgr::UnlinkGameAccount | ( | std::string_view | gameAccountName | ) |
Definition at line 143 of file BattlenetAccountMgr.cpp.
References AOR_ACCOUNT_BAD_LINK, AOR_NAME_NOT_EXIST, AOR_OK, AccountMgr::GetId(), GetIdByGameAccount(), LOGIN_UPD_BNET_GAME_ACCOUNT_LINK, LoginDatabase, PreparedStatementBase::setNull(), and PreparedStatementBase::setUInt32().
Referenced by battlenet_account_commandscript::HandleAccountUnlinkCommand().