Skip to content

Commit b1c862b

Browse files
Added "key" to user_data.subscription
1 parent 13292a3 commit b1c862b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Console/KeyAuth.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,7 @@ public class Data
12971297
public string subscription { get; set; }
12981298
public string expiry { get; set; }
12991299
public string timeleft { get; set; }
1300+
public string key { get; set; }
13001301
}
13011302

13021303
private void load_user_data(user_data_structure data)

Console/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ static void Main(string[] args)
133133
// user data
134134
Console.WriteLine("\n User data:");
135135
Console.WriteLine(" Username: " + KeyAuthApp.user_data.username);
136+
Console.WriteLine(" License: " + KeyAuthApp.user_data.subscriptions[0].key); // this can be used if the user used a license, username, and password for register. It'll display the license assigned to the user
136137
Console.WriteLine(" IP address: " + KeyAuthApp.user_data.ip);
137138
Console.WriteLine(" Hardware-Id: " + KeyAuthApp.user_data.hwid);
138139
Console.WriteLine(" Created at: " + UnixTimeToDateTime(long.Parse(KeyAuthApp.user_data.createdate)));

Form/KeyAuth.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,7 @@ public class Data
12931293
public string subscription { get; set; }
12941294
public string expiry { get; set; }
12951295
public string timeleft { get; set; }
1296+
public string key { get; set; }
12961297
}
12971298

12981299
private void load_user_data(user_data_structure data)

Form/Main.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public Main()
2828
private void Main_Load(object sender, EventArgs e)
2929
{
3030
userDataField.Items.Add($"Username: {Login.KeyAuthApp.user_data.username}");
31+
userDataField.Items.Add($"License: {Login.KeyAuthApp.user_data.subscriptions[0].key}"); // this can be used if the user used a license, username, and password for register. It'll display the license assigned to the user
3132
userDataField.Items.Add($"Expires: {UnixTimeToDateTime(long.Parse(Login.KeyAuthApp.user_data.subscriptions[0].expiry))}");
3233
userDataField.Items.Add($"Subscription: {Login.KeyAuthApp.user_data.subscriptions[0].subscription}");
3334
userDataField.Items.Add($"IP: {Login.KeyAuthApp.user_data.ip}");

0 commit comments

Comments
 (0)