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);
68 static bool CheckPassword(std::string username, std::string password);
70 static bool CheckEmail(
uint32 accountId, std::string newEmail);
76 static bool GetEmail(
uint32 accountId, std::string& email);
79 static bool IsBannedAccount(std::string
const& name);
80 static bool IsPlayerAccount(
uint32 gmlevel);
81 static bool IsAdminAccount(
uint32 gmlevel);
82 static bool IsConsoleAccount(
uint32 gmlevel);
99#define sAccountMgr AccountMgr::instance()
Role Based Access Control related classes definition.
rbac::RBACPermissionsContainer _permissions
rbac::RBACDefaultPermissionsContainer _defaultPermissions
rbac::RBACPermissionsContainer const & GetRBACPermissionList() const
TC_GAME_API AccountOpResult ChangePassword(uint32 accountId, std::string newPassword)
TC_GAME_API uint32 GetId(std::string_view username)
TC_GAME_API bool CheckPassword(uint32 accountId, std::string password)
TC_GAME_API bool GetName(uint32 accountId, std::string &name)
std::map< uint32, rbac::RBACPermission * > RBACPermissionsContainer
std::map< uint8, rbac::RBACPermissionContainer > RBACDefaultPermissionsContainer
std::set< uint32 > RBACPermissionContainer