71 if (loginData1 !=
nullptr)
79 const bool persistentIp)
const
108 if (loginData1 ==
nullptr)
111 std::string username = loginData1->
username;
112 switch (loginData1->
gender)
116 username.append(
"_F");
119 username.append(
"_M");
147 if (
data->registerLogin)
152 const bool remember =
data->remember;
170 data->password.clear();
182 const std::string &password
void setState(const StateT state)
bool getBoolValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
void registerAccount(const LoginData *const loginData) const
void loginOrRegister(LoginData *const data) const
void loginAccount(LoginData *const loginData) const
virtual ServerInfo * getCharServer() const =0
const Token & getToken() const A_CONST
void changeEmail(const std::string &email) const
void chooseServer(const unsigned int server, const bool persistentIp) const
bool isRegistrationEnabled() const
virtual void sendLoginRegister(const std::string &username, const std::string &password, const std::string &email) const =0
void unregisterAccount(const std::string &username, const std::string &password) const
const Worlds & getWorlds() const A_CONST
void getRegistrationDetails() const
void log(const char *const log_text,...)
void resetCharacterSlots()
Configuration serverConfig
void delete_all(Container &c)
bool mRegistrationEnabled
const char * ipToString(const uint32_t address)
std::vector< WorldInfo * > Worlds