TrinityCore
Loading...
Searching...
No Matches
AccountMgr.h File Reference
#include "RBAC.h"
#include <functional>
+ Include dependency graph for AccountMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AccountMgr
 

Namespaces

namespace  rbac
 

Macros

#define sAccountMgr   AccountMgr::instance()
 

Typedefs

typedef std::map< uint32, rbac::RBACPermission * > rbac::RBACPermissionsContainer
 
typedef std::map< uint8, rbac::RBACPermissionContainer > rbac::RBACDefaultPermissionsContainer
 

Enumerations

enum class  AccountOpResult : uint8 {
  AOR_OK , AOR_NAME_TOO_LONG , AOR_PASS_TOO_LONG , AOR_EMAIL_TOO_LONG ,
  AOR_NAME_ALREADY_EXIST , AOR_NAME_NOT_EXIST , AOR_DB_INTERNAL_ERROR , AOR_ACCOUNT_BAD_LINK
}
 
enum  PasswordChangeSecurity { PW_NONE , PW_EMAIL , PW_RBAC }
 

Variables

constexpr std::size_t MAX_ACCOUNT_STR [2] = { 16, 64 }
 
constexpr std::size_t MAX_ACCOUNT_NAME_BYTES = 255
 
constexpr std::size_t MAX_PASS_STR = 16
 
constexpr std::size_t MAX_EMAIL_STR = 64
 

Macro Definition Documentation

◆ sAccountMgr

#define sAccountMgr   AccountMgr::instance()

Definition at line 105 of file AccountMgr.h.

Enumeration Type Documentation

◆ AccountOpResult

enum class AccountOpResult : uint8
strong
Enumerator
AOR_OK 
AOR_NAME_TOO_LONG 
AOR_PASS_TOO_LONG 
AOR_EMAIL_TOO_LONG 
AOR_NAME_ALREADY_EXIST 
AOR_NAME_NOT_EXIST 
AOR_DB_INTERNAL_ERROR 
AOR_ACCOUNT_BAD_LINK 

Definition at line 24 of file AccountMgr.h.

◆ PasswordChangeSecurity

Enumerator
PW_NONE 
PW_EMAIL 
PW_RBAC 

Definition at line 36 of file AccountMgr.h.

Variable Documentation

◆ MAX_ACCOUNT_NAME_BYTES

constexpr std::size_t MAX_ACCOUNT_NAME_BYTES = 255
inlineconstexpr

Definition at line 44 of file AccountMgr.h.

Referenced by AccountMgr::ChangeUsername(), and AccountMgr::CreateAccount().

◆ MAX_ACCOUNT_STR

constexpr std::size_t MAX_ACCOUNT_STR[2] = { 16, 64 }
inlineconstexpr

◆ MAX_EMAIL_STR

constexpr std::size_t MAX_EMAIL_STR = 64
inlineconstexpr

Definition at line 46 of file AccountMgr.h.

Referenced by AccountMgr::ChangeEmail(), and AccountMgr::ChangeRegEmail().

◆ MAX_PASS_STR

constexpr std::size_t MAX_PASS_STR = 16
inlineconstexpr