You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x64/main.cpp
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,12 @@ using namespace KeyAuth;
16
16
17
17
// copy and paste from https://keyauth.cc/app/ and replace these string variables
18
18
// Please watch tutorial HERE https://www.youtube.com/watch?v=5x4YkTmFH-U
19
-
std::string name = skCrypt("name").decrypt(); // App name
20
-
std::string ownerid = skCrypt("ownerid").decrypt(); // Account ID
19
+
std::string name = skCrypt("").decrypt(); // App name
20
+
std::string ownerid = skCrypt("").decrypt(); // Account ID
21
21
std::string version = skCrypt("1.0").decrypt(); // Application version. Used for automatic downloads see video here https://www.youtube.com/watch?v=kW195PLCBKs
22
22
std::string url = skCrypt("https://keyauth.win/api/1.3/").decrypt(); // change if using KeyAuth custom domains feature
23
23
std::string path = skCrypt("").decrypt(); // (OPTIONAL) see tutorial here https://www.youtube.com/watch?v=I9rxt821gMk&t=1s
24
24
25
-
26
25
api KeyAuthApp(name, ownerid, version, url, path);
27
26
28
27
intmain()
@@ -85,11 +84,8 @@ int main()
85
84
std::cout << skCrypt("\n Enter password: ");
86
85
std::cin >> password;
87
86
std::cout << skCrypt("\n Enter 2fa code if applicable: ");
88
-
std::cin.ignore(); // Ignore the newline character left by the previous input
89
-
std::getline(std::cin, TfaCode); // Allow empty input for 2FA code
90
-
if (TfaCode.empty()) {
91
-
std::cout << skCrypt("\n No 2fa code entered, continuing without it\n");
92
-
}
87
+
std::cin.ignore();
88
+
std::getline(std::cin, TfaCode);
93
89
KeyAuthApp.login(username, password, TfaCode);
94
90
break;
95
91
case2:
@@ -112,7 +108,8 @@ int main()
112
108
std::cout << skCrypt("\n Enter license: ");
113
109
std::cin >> key;
114
110
std::cout << skCrypt("\n Enter 2fa code if applicable: ");
0 commit comments