@@ -18,8 +18,8 @@ namespace KeyAuth {
18
18
std::string name, ownerid, version, url, path;
19
19
static bool debug;
20
20
21
- api (std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debug = false ) {
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);
23
23
}
24
24
25
25
void ban (std::string reason = " " );
@@ -108,6 +108,8 @@ namespace KeyAuth {
108
108
static std::string req (std::string data, std::string url);
109
109
110
110
static void debugInfo (std::string data, std::string url, std::string response, std::string headers);
111
+
112
+ static void setDebug (bool value);
111
113
112
114
113
115
void load_user_data (nlohmann::json data) {
@@ -137,7 +139,7 @@ namespace KeyAuth {
137
139
api::app_data.version = data[XorStr (" version" )];
138
140
api::app_data.customerPanelLink = data[XorStr (" customerPanelLink" )];
139
141
}
140
-
142
+
141
143
void load_response_data (nlohmann::json data) {
142
144
api::response.success = data[XorStr (" success" )];
143
145
api::response.message = data[" message" ];
0 commit comments