TrinityCore
Loading...
Searching...
No Matches
account_commandscript Class Reference
+ Inheritance diagram for account_commandscript:

Public Member Functions

 account_commandscript ()
 
std::span< ChatCommandBuilder const > GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
- 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.
 
static bool HandleAccountDeleteCommand (ChatHandler *handler, std::string &accountName)
 
static bool HandleAccountOnlineListCommand (ChatHandler *handler)
 Display info on users currently in the realm.
 
static bool HandleAccountOnlineListWithIpFilterCommand (ChatHandler *handler, std::string_view 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_view > const &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.
 
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.
 
static bool HandleAccountSet2FACommand (ChatHandler *handler, std::string &accountName, std::string_view secret)
 
static bool HandleAccountSetEmailCommand (ChatHandler *handler, std::string &accountName, std::string const &email, std::string const &confirmEmail)
 Set normal email for account.
 
static bool HandleAccountSetRegEmailCommand (ChatHandler *handler, std::string &accountName, std::string const &email, std::string const &confirmEmail)
 Change registration email for account.
 

Additional Inherited Members

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

Detailed Description

Definition at line 46 of file cs_account.cpp.

Constructor & Destructor Documentation

◆ account_commandscript()

account_commandscript::account_commandscript ( )
inline

Definition at line 49 of file cs_account.cpp.

Member Function Documentation

◆ GetCommands()

std::span< ChatCommandBuilder const > account_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 51 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 157 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 93 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 225 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 615 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 246 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 294 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 481 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 430 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 460 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 341 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_view > const &  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 366 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_view  ipAddress 
)
inlinestatic

Definition at line 346 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 351 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 356 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 361 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 550 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_view  secret 
)
inlinestatic

Definition at line 843 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 651 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 907 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 792 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 962 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 702 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: