43 #define MAX_PASS_STR 16
44 #define MAX_ACCOUNT_STR 16
45 #define MAX_EMAIL_STR 64
62 AccountOpResult CreateAccount(std::string username, std::string password, std::string email =
"",
uint32 bnetAccountId = 0,
uint8 bnetIndex = 0);
64 static AccountOpResult ChangeUsername(
uint32 accountId, std::string newUsername, std::string newPassword);
69 static bool CheckEmail(
uint32 accountId, std::string newEmail);
75 static bool GetEmail(
uint32 accountId, std::string& email);
79 static bool IsPlayerAccount(
uint32 gmlevel);
80 static bool IsAdminAccount(
uint32 gmlevel);
81 static bool IsConsoleAccount(
uint32 gmlevel);
98 #define sAccountMgr AccountMgr::instance()
TC_GAME_API std::string CalculateShaPassHash(std::string const &name, std::string const &password)
Definition: BattlenetAccountMgr.cpp:172
Definition: AccountMgr.h:53
rbac::RBACDefaultPermissionsContainer _defaultPermissions
Definition: AccountMgr.h:95
PasswordChangeSecurity
Definition: AccountMgr.h:36
std::map< uint8, rbac::RBACPermissionContainer > RBACDefaultPermissionsContainer
Definition: AccountMgr.h:50
Definition: AccountMgr.h:39
Definition: AccountMgr.h:47
Role Based Access Control related classes definition.
TC_GAME_API uint32 GetId(std::string const &username)
Definition: BattlenetAccountMgr.cpp:128
std::map< uint32, rbac::RBACPermission * > RBACPermissionsContainer
Definition: AccountMgr.h:49
TC_GAME_API AccountOpResult ChangePassword(uint32 accountId, std::string newPassword)
Definition: BattlenetAccountMgr.cpp:54
AccountOpResult
Definition: AccountMgr.h:24
rbac::RBACPermissionsContainer const & GetRBACPermissionList() const
Definition: AccountMgr.h:89
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
TC_GAME_API bool GetName(uint32 accountId, std::string &name)
Definition: BattlenetAccountMgr.cpp:138
TC_GAME_API bool CheckPassword(uint32 accountId, std::string password)
Definition: BattlenetAccountMgr.cpp:73
#define TC_GAME_API
Definition: Define.h:134
uint8_t uint8
Definition: Define.h:152
Definition: AccountMgr.h:40
Definition: AccountMgr.h:38
std::set< uint32 > RBACPermissionContainer
Definition: RBAC.h:746
rbac::RBACPermissionsContainer _permissions
Definition: AccountMgr.h:94