Skip to content

Commit ab20de7

Browse files
authored
Update auth.hpp
1 parent bb3c152 commit ab20de7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

auth.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ namespace KeyAuth {
1818
std::string name, ownerid, version, url, path;
1919
static bool debug;
2020

21-
api(std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debug = true) {
22-
debug = debug;
21+
api(std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debugParameter = true) {
22+
setDebug(debugParameter);
2323
}
2424

2525
void ban(std::string reason = "");
@@ -107,7 +107,9 @@ namespace KeyAuth {
107107

108108
static std::string req(std::string data, std::string url);
109109

110-
static void debugInfo(std::string data, std::string url, std::string response, std::string headers);
110+
void debugInfo(std::string data, std::string url, std::string response, std::string headers);
111+
112+
static void setDebug(bool value);
111113

112114

113115
void load_user_data(nlohmann::json data) {
@@ -136,8 +138,10 @@ namespace KeyAuth {
136138
api::app_data.numKeys = data[XorStr("numKeys")];
137139
api::app_data.version = data[XorStr("version")];
138140
api::app_data.customerPanelLink = data[XorStr("customerPanelLink")];
141+
std::cout << data;
142+
//api::app_data.downloadLink = data[XorStr("download")];
139143
}
140-
144+
141145
void load_response_data(nlohmann::json data) {
142146
api::response.success = data[XorStr("success")];
143147
api::response.message = data["message"];

0 commit comments

Comments
 (0)