Merge remote-tracking branch 'upstream/main' into MoreImprovements

This commit is contained in:
David Markowitz
2022-12-19 03:53:51 -08:00
31 changed files with 143 additions and 35 deletions

View File

@@ -223,7 +223,7 @@ int main(int argc, char** argv) {
//Create account
auto* statement = Database::CreatePreppedStmt("INSERT INTO accounts (name, password, ""gm_level) VALUES (?, ?, ?);");
statement->setString(1, username);
statement->setString(1, username.c_str());
statement->setString(2, std::string(hash, BCRYPT_HASHSIZE).c_str());
statement->setInt(3, 9);