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
@@ -17,13 +18,13 @@ public partial class Login : Form
17
18
*/
18
19
19
20
publicstaticapiKeyAuthApp=newapi(
20
-
name:"",
21
-
ownerid:"",
22
-
secret:"",
23
-
version:"1.0"/*,
24
-
path: @"PathToCheckToken" NOTE: THE "@" IS IF THE TOKEN.TXT FILE IS IN THE SAME DIRECTORY AS THE .EXE*/
21
+
name:"",// Application Name
22
+
ownerid:"",// Owner ID
23
+
secret:"",// Application Secret
24
+
version:""// Application Version /*
25
+
//path: @"Your_Path_Here" // (OPTIONAL) see tutorial here https://www.youtube.com/watch?v=I9rxt821gMk&t=1s
25
26
);
26
-
27
+
27
28
//This will display how long it took to make a request in ms. The param "type" is for "login", "register", "init", etc... but that is optional, as well as this function. Ideally you can just put a label or MessageBox.Show($"Request took {api.responseTime}"), but either works.
28
29
// if you would like to use this method, simply put it in any function and pass the param ... ShowResponse("TypeHere");
MessageBox.Show("Version of this program does not match the one online. Furthermore, the download link online isn't set. You will need to manually obtain the download link from the developer");
KeyAuthApp.upgrade(username.Text,key.Text);// success is set to false so people can't press upgrade then press login and skip logging in. it doesn't matter, since you shouldn't take any action on succesfull upgrade anyways. the only thing that needs to be done is the user needs to see the message from upgrade function
130
+
KeyAuthApp.upgrade(usernameField.Text,keyField.Text);// success is set to false so people can't press upgrade then press login and skip logging in. it doesn't matter, since you shouldn't take any action on succesfull upgrade anyways. the only thing that needs to be done is the user needs to see the message from upgrade function
0 commit comments