mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-08 00:36:07 +00:00
Replaced cURL with evpp
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/// Created by Anonymous275 on 11/26/2020
|
||||
///
|
||||
|
||||
#include "Curl/http.h"
|
||||
#include "http.h"
|
||||
#include <filesystem>
|
||||
#include "Logger.h"
|
||||
#include <fstream>
|
||||
@@ -47,7 +47,7 @@ std::string Login(const std::string& fields){
|
||||
return "";
|
||||
}
|
||||
info("Attempting to authenticate...");
|
||||
std::string Buffer = PostHTTP("https://auth.beammp.com/userlogin", fields);
|
||||
std::string Buffer = HTTP::Post("https://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 = PostHTTP("https://auth.beammp.com/userlogin", R"({"pk":")"+Buffer+"\"}");
|
||||
Buffer = HTTP::Post("https://auth.beammp.com/userlogin", R"({"pk":")" + Buffer + "\"}");
|
||||
|
||||
json::Document d;
|
||||
d.Parse(Buffer.c_str());
|
||||
|
||||
Reference in New Issue
Block a user