Server is nearly done, only server_application.cpp is failing

This commit is contained in:
Kayne Ruse
2014-06-06 23:34:38 +10:00
parent 10e857ecd1
commit 170096b5db
8 changed files with 31 additions and 21 deletions
+10
View File
@@ -36,6 +36,16 @@ static const char* DELETE_USER_ACCOUNT = "DELETE FROM Accounts WHERE uid = ?;";
//Define the public methods
//-------------------------
AccountManager::AccountManager() {
//
}
AccountManager::~AccountManager() {
for (auto& it : accountMap) {
SaveUserAccount(it.first);
}
}
int AccountManager::CreateUserAccount(std::string username, int clientIndex) {
//create this user account, failing if it exists, leave this account in memory
sqlite3_stmt* statement = nullptr;