@@ -22,15 +22,14 @@ api KeyAuthApp(name.decrypt(), ownerid.decrypt(), secret.decrypt(), version.decr
2222int main ()
2323{
2424 // Freeing memory to prevent memory leak or memory scraping
25- name.clear (); ownerid.clear (); secret.clear (); version.clear (); url.clear ();
26-
25+ name.clear (); ownerid.clear (); secret.clear (); version.clear (); url.clear ();
2726 std::string consoleTitle = skCrypt (" Loader - Built at: " ).decrypt () + compilation_date + " " + compilation_time;
2827 SetConsoleTitleA (consoleTitle.c_str ());
2928 std::cout << skCrypt (" \n\n Connecting.." );
3029 KeyAuthApp.init ();
31- if (!KeyAuthApp.data .success )
30+ if (!KeyAuthApp.response .success )
3231 {
33- std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.data .message ;
32+ std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.response .message ;
3433 Sleep (1500 );
3534 exit (1 );
3635 }
@@ -41,10 +40,10 @@ int main()
4140 {
4241 std::string key = ReadFromJson (" test.json" , " license" );
4342 KeyAuthApp.license (key);
44- if (!KeyAuthApp.data .success )
43+ if (!KeyAuthApp.response .success )
4544 {
4645 std::remove (" test.json" );
47- std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.data .message ;
46+ std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.response .message ;
4847 Sleep (1500 );
4948 exit (1 );
5049 }
@@ -55,10 +54,10 @@ int main()
5554 std::string username = ReadFromJson (" test.json" , " username" );
5655 std::string password = ReadFromJson (" test.json" , " password" );
5756 KeyAuthApp.login (username, password);
58- if (!KeyAuthApp.data .success )
57+ if (!KeyAuthApp.response .success )
5958 {
6059 std::remove (" test.json" );
61- std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.data .message ;
60+ std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.response .message ;
6261 Sleep (1500 );
6362 exit (1 );
6463 }
@@ -111,9 +110,9 @@ int main()
111110 exit (1 );
112111 }
113112
114- if (!KeyAuthApp.data .success )
113+ if (!KeyAuthApp.response .success )
115114 {
116- std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.data .message ;
115+ std::cout << skCrypt (" \n Status: " ) << KeyAuthApp.response .message ;
117116 Sleep (1500 );
118117 exit (1 );
119118 }
@@ -130,24 +129,24 @@ int main()
130129
131130
132131 }
133-
132+
134133 std::cout << skCrypt (" \n User data:" );
135- std::cout << skCrypt (" \n Username: " ) << KeyAuthApp.data .username ;
136- std::cout << skCrypt (" \n IP address: " ) << KeyAuthApp.data .ip ;
137- std::cout << skCrypt (" \n Hardware-Id: " ) << KeyAuthApp.data .hwid ;
138- std::cout << skCrypt (" \n Create date: " ) << tm_to_readable_time (timet_to_tm (string_to_timet (KeyAuthApp.data .createdate )));
139- std::cout << skCrypt (" \n Last login: " ) << tm_to_readable_time (timet_to_tm (string_to_timet (KeyAuthApp.data .lastlogin )));
134+ std::cout << skCrypt (" \n Username: " ) << KeyAuthApp.user_data .username ;
135+ std::cout << skCrypt (" \n IP address: " ) << KeyAuthApp.user_data .ip ;
136+ std::cout << skCrypt (" \n Hardware-Id: " ) << KeyAuthApp.user_data .hwid ;
137+ std::cout << skCrypt (" \n Create date: " ) << tm_to_readable_time (timet_to_tm (string_to_timet (KeyAuthApp.user_data .createdate )));
138+ std::cout << skCrypt (" \n Last login: " ) << tm_to_readable_time (timet_to_tm (string_to_timet (KeyAuthApp.user_data .lastlogin )));
140139 std::cout << skCrypt (" \n Subscription(s): " );
141140
142- for (int i = 0 ; i < KeyAuthApp.data .subscriptions .size (); i++) {
143- auto sub = KeyAuthApp.data .subscriptions .at (i);
141+ for (int i = 0 ; i < KeyAuthApp.user_data .subscriptions .size (); i++) {
142+ auto sub = KeyAuthApp.user_data .subscriptions .at (i);
144143 std::cout << skCrypt (" \n name: " ) << sub.name ;
145144 std::cout << skCrypt (" : expiry: " ) << tm_to_readable_time (timet_to_tm (string_to_timet (sub.expiry )));
146145 }
147146
148147 std::cout << skCrypt (" \n\n Closing in five seconds..." );
149148 Sleep (5000 );
150-
149+
151150 return 0 ;
152151}
153152
0 commit comments