fix game breaking bug

This commit is contained in:
Lion Kortlepel 2024-02-09 14:56:38 +01:00 committed by Lion
parent b2e5b8d2d3
commit 6158069d4d

View File

@ -69,10 +69,10 @@ std::string Login(const std::string& fields){
if (d.contains("username")) { if (d.contains("username")) {
Username = d["username"].get<std::string>(); Username = d["username"].get<std::string>();
} }
if(!d.contains("private_key")) { if(d.contains("private_key")) {
UpdateKey(d["private_key"].get<std::string>().c_str()); UpdateKey(d["private_key"].get<std::string>().c_str());
} }
if(!d.contains("public_key")){ if(d.contains("public_key")){
PublicKey = d["public_key"].get<std::string>(); PublicKey = d["public_key"].get<std::string>();
} }
info("Authentication successful!"); info("Authentication successful!");