Skip to content

Commit 9d20341

Browse files
Merge pull request #74 from Shxde1/main
2 parents 4169304 + 40719ab commit 9d20341

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

x64/auth.hpp

+16-12
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ namespace KeyAuth {
1414
class api {
1515
public:
1616

17-
std::string name, ownerid, version, url, path;
17+
std::string name, ownerid, version, url, path;
1818
static bool debug;
1919

20-
api(std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debugParameter = false) {
20+
api(std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debugParameter = false)
21+
: name(name), ownerid(ownerid), version(version), url(url), path(path)
22+
{
2123
setDebug(debugParameter);
2224
}
23-
25+
2426
void ban(std::string reason = "");
2527
void init();
2628
void check(bool check_paid = false);
@@ -44,26 +46,26 @@ namespace KeyAuth {
4446
void fetchstats();
4547
void forgot(std::string username, std::string email);
4648
void logout();
47-
49+
4850
class subscriptions_class {
4951
public:
5052
std::string name;
5153
std::string expiry;
5254
};
53-
55+
5456
class userdata {
5557
public:
56-
58+
5759
// user data
5860
std::string username;
5961
std::string ip;
6062
std::string hwid;
6163
std::string createdate;
6264
std::string lastlogin;
63-
65+
6466
std::vector<subscriptions_class> subscriptions;
6567
};
66-
68+
6769
class appdata {
6870
public:
6971
// app data
@@ -72,8 +74,9 @@ namespace KeyAuth {
7274
std::string numKeys;
7375
std::string version;
7476
std::string customerPanelLink;
77+
std::string downloadLink;
7578
};
76-
79+
7780
class responsedata {
7881
public:
7982
// response data
@@ -82,7 +85,7 @@ namespace KeyAuth {
8285
std::string message;
8386
bool isPaid{};
8487
};
85-
88+
8689
bool activate = false;
8790
class Tfa {
8891
public:
@@ -92,13 +95,14 @@ namespace KeyAuth {
9295
private:
9396
void QrCode();
9497
};
95-
98+
9699
Tfa& enable2fa(std::string code = "");
97100
Tfa& disable2fa(std::string code = "");
98-
101+
99102
userdata user_data;
100103
appdata app_data;
101104
responsedata response;
105+
Tfa tfa;
102106

103107
private:
104108
std::string sessionid, enckey;

x64/library_x64.lib

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)