TrinityCore
account_commandscript Class Reference
+ Inheritance diagram for account_commandscript:

Public Member Functions

 account_commandscript ()
 
ChatCommandTable GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
virtual std::vector< Trinity::ChatCommands::ChatCommandBuilderGetCommands () const =0
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandleAccount2FASetupCommand (ChatHandler *handler, Optional< uint32 > token)
 
static bool HandleAccount2FARemoveCommand (ChatHandler *handler, Optional< uint32 > token)
 
static bool HandleAccountAddonCommand (ChatHandler *handler, uint8 expansion)
 
static bool HandleAccountCreateCommand (ChatHandler *handler, std::string const &accountName, std::string const &password, Optional< std::string > const &email)
 Create an account. More...
 
static bool HandleAccountDeleteCommand (ChatHandler *handler, std::string accountName)
 
static bool HandleAccountOnlineListCommand (ChatHandler *handler)
 Display info on users currently in the realm. More...
 
static bool HandleAccountOnlineListWithIpFilterCommand (ChatHandler *handler, std::string ipAddress)
 
static bool HandleAccountOnlineListWithLimitCommand (ChatHandler *handler, uint32 limit)
 
static bool HandleAccountOnlineListWithMapFilterCommand (ChatHandler *handler, uint32 mapId)
 
static bool HandleAccountOnlineListWithZoneFilterCommand (ChatHandler *handler, uint32 zoneId)
 
static bool HandleAccountOnlineListCommandWithParameters (ChatHandler *handler, Optional< std::string > ipAddress, Optional< uint32 > limit, Optional< uint32 > mapId, Optional< uint32 > zoneId)
 
static bool HandleAccountLockCountryCommand (ChatHandler *handler, bool state)
 
static bool HandleAccountLockIpCommand (ChatHandler *handler, bool state)
 
static bool HandleAccountEmailCommand (ChatHandler *handler, std::string const &oldEmail, std::string const &password, std::string const &email, std::string const &emailConfirm)
 
static bool HandleAccountPasswordCommand (ChatHandler *handler, std::string const &oldPassword, std::string const &newPassword, std::string const &confirmPassword, Optional< std::string > const &confirmEmail)
 
static bool HandleAccountCommand (ChatHandler *handler)
 
static bool HandleAccountSetAddonCommand (ChatHandler *handler, Optional< std::string > accountName, uint8 expansion)
 Set/Unset the expansion level for an account. More...
 
static bool HandleAccountSetSecLevelCommand (ChatHandler *handler, Optional< std::string > accountName, uint8 securityLevel, Optional< int32 > realmId)
 
static bool HandleAccountSetPasswordCommand (ChatHandler *handler, std::string accountName, std::string const &password, std::string const &confirmPassword)
 Set password for account. More...
 
static bool HandleAccountSet2FACommand (ChatHandler *handler, std::string accountName, std::string secret)
 
static bool HandleAccountSetEmailCommand (ChatHandler *handler, std::string accountName, std::string const &email, std::string const &confirmEmail)
 Set normal email for account. More...
 
static bool HandleAccountSetRegEmailCommand (ChatHandler *handler, std::string accountName, std::string const &email, std::string const &confirmEmail)
 Change registration email for account. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name)
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 47 of file cs_account.cpp.

Constructor & Destructor Documentation

◆ account_commandscript()

account_commandscript::account_commandscript ( )
inline

Definition at line 50 of file cs_account.cpp.

Member Function Documentation

◆ GetCommands()

ChatCommandTable account_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 52 of file cs_account.cpp.

+ Here is the call graph for this function:

◆ HandleAccount2FARemoveCommand()

static bool account_commandscript::HandleAccount2FARemoveCommand ( ChatHandler handler,
Optional< uint32 token 
)
inlinestatic

Definition at line 158 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccount2FASetupCommand()

static bool account_commandscript::HandleAccount2FASetupCommand ( ChatHandler handler,
Optional< uint32 token 
)
inlinestatic

Definition at line 94 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountAddonCommand()

static bool account_commandscript::HandleAccountAddonCommand ( ChatHandler handler,
uint8  expansion 
)
inlinestatic

Definition at line 226 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountCommand()

static bool account_commandscript::HandleAccountCommand ( ChatHandler handler)
inlinestatic

Definition at line 616 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountCreateCommand()

static bool account_commandscript::HandleAccountCreateCommand ( ChatHandler handler,
std::string const &  accountName,
std::string const &  password,
Optional< std::string > const &  email 
)
inlinestatic

Create an account.

Definition at line 247 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountDeleteCommand()

static bool account_commandscript::HandleAccountDeleteCommand ( ChatHandler handler,
std::string  accountName 
)
inlinestatic

Delete a user account and all associated characters in this realm

Todo:
This function has to be enhanced to respect the login/realm split (delete char, delete account chars in realm then delete account)

Commands not recommended call from chat, but support anyway can delete only for account with less security This is also reject self apply in fact

Definition at line 295 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountEmailCommand()

static bool account_commandscript::HandleAccountEmailCommand ( ChatHandler handler,
std::string const &  oldEmail,
std::string const &  password,
std::string const &  email,
std::string const &  emailConfirm 
)
inlinestatic

Definition at line 482 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountLockCountryCommand()

static bool account_commandscript::HandleAccountLockCountryCommand ( ChatHandler handler,
bool  state 
)
inlinestatic

Definition at line 431 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountLockIpCommand()

static bool account_commandscript::HandleAccountLockIpCommand ( ChatHandler handler,
bool  state 
)
inlinestatic

Definition at line 461 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListCommand()

static bool account_commandscript::HandleAccountOnlineListCommand ( ChatHandler handler)
inlinestatic

Display info on users currently in the realm.

Definition at line 342 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListCommandWithParameters()

static bool account_commandscript::HandleAccountOnlineListCommandWithParameters ( ChatHandler handler,
Optional< std::string >  ipAddress,
Optional< uint32 limit,
Optional< uint32 mapId,
Optional< uint32 zoneId 
)
inlinestatic
  • Display the list of account/characters online on the first matched sessions

Definition at line 367 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListWithIpFilterCommand()

static bool account_commandscript::HandleAccountOnlineListWithIpFilterCommand ( ChatHandler handler,
std::string  ipAddress 
)
inlinestatic

Definition at line 347 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListWithLimitCommand()

static bool account_commandscript::HandleAccountOnlineListWithLimitCommand ( ChatHandler handler,
uint32  limit 
)
inlinestatic

Definition at line 352 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListWithMapFilterCommand()

static bool account_commandscript::HandleAccountOnlineListWithMapFilterCommand ( ChatHandler handler,
uint32  mapId 
)
inlinestatic

Definition at line 357 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountOnlineListWithZoneFilterCommand()

static bool account_commandscript::HandleAccountOnlineListWithZoneFilterCommand ( ChatHandler handler,
uint32  zoneId 
)
inlinestatic

Definition at line 362 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountPasswordCommand()

static bool account_commandscript::HandleAccountPasswordCommand ( ChatHandler handler,
std::string const &  oldPassword,
std::string const &  newPassword,
std::string const &  confirmPassword,
Optional< std::string > const &  confirmEmail 
)
inlinestatic

Definition at line 551 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSet2FACommand()

static bool account_commandscript::HandleAccountSet2FACommand ( ChatHandler handler,
std::string  accountName,
std::string  secret 
)
inlinestatic

Definition at line 849 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSetAddonCommand()

static bool account_commandscript::HandleAccountSetAddonCommand ( ChatHandler handler,
Optional< std::string >  accountName,
uint8  expansion 
)
inlinestatic

Set/Unset the expansion level for an account.

  • Convert Account name to Upper Format

Definition at line 656 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSetEmailCommand()

static bool account_commandscript::HandleAccountSetEmailCommand ( ChatHandler handler,
std::string  accountName,
std::string const &  email,
std::string const &  confirmEmail 
)
inlinestatic

Set normal email for account.

can set email only for target with less security This also restricts setting handler's own email.

Definition at line 913 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSetPasswordCommand()

static bool account_commandscript::HandleAccountSetPasswordCommand ( ChatHandler handler,
std::string  accountName,
std::string const &  password,
std::string const &  confirmPassword 
)
inlinestatic

Set password for account.

can set password only for target with less security This also restricts setting handler's own password

Definition at line 798 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSetRegEmailCommand()

static bool account_commandscript::HandleAccountSetRegEmailCommand ( ChatHandler handler,
std::string  accountName,
std::string const &  email,
std::string const &  confirmEmail 
)
inlinestatic

Change registration email for account.

can set email only for target with less security This also restricts setting handler's own email.

Definition at line 968 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAccountSetSecLevelCommand()

static bool account_commandscript::HandleAccountSetSecLevelCommand ( ChatHandler handler,
Optional< std::string >  accountName,
uint8  securityLevel,
Optional< int32 realmId 
)
inlinestatic

Definition at line 708 of file cs_account.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: