Possible fix for new backend linix ~Anonymous275

This commit is contained in:
Starystars67
2021-03-29 19:00:23 +01:00
parent fff747afca
commit ae6725ece3
6 changed files with 45 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ std::string Login(const std::string& fields){
return "";
}
info("Attempting to authenticate...");
std::string Buffer = HTTP::Post("https://auth.beammp.com/userlogin", fields);
std::string Buffer = HTTP::Post("auth.beammp.com/userlogin", fields);
json::Document d;
d.Parse(Buffer.c_str());
if(Buffer == "-1"){
@@ -88,7 +88,7 @@ void CheckLocalKey(){
Key.read(&Buffer[0], Size);
Key.close();
Buffer = HTTP::Post("https://auth.beammp.com/userlogin", R"({"pk":")" + Buffer + "\"}");
Buffer = HTTP::Post("auth.beammp.com/userlogin", R"({"pk":")" + Buffer + "\"}");
json::Document d;
d.Parse(Buffer.c_str());