Skip to content

Commit 62177b7

Browse files
author
Matthew Bate
committed
Added tabAdmin form functionality working
1 parent c60a8fe commit 62177b7

File tree

11 files changed

+2211
-17
lines changed

11 files changed

+2211
-17
lines changed

BHD-ServerManager/Classes/InstanceManagers/adminInstanceManager.cs

Lines changed: 523 additions & 0 deletions
Large diffs are not rendered by default.

BHD-ServerManager/Classes/InstanceManagers/banInstanceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ public static OperationResult InitializeProxyService()
965965
/// <summary>
966966
/// Test proxy service with a given IP address
967967
/// </summary>
968-
public static async Task<(bool success, ProxyCheckResult? result, string errorMessage)> TestProxyService(
968+
public static async Task<(bool success, ProxyCheckResult? result, string? errorMessage)> TestProxyService(
969969
string apiKey,
970970
int serviceProvider,
971971
IPAddress testIP)

BHD-ServerManager/Classes/InstanceManagers/theInstanceManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,12 +1040,6 @@ public static bool ValidateGameServerPath()
10401040
return true;
10411041
}
10421042

1043-
public static void GetServerVariables(bool import = false, theInstance updatedInstance = null!)
1044-
{
1045-
var newInstance = import && updatedInstance != null ? updatedInstance : theInstance;
1046-
thisServer.StatsTab.functionEvent_GetStatSettings((updatedInstance != null ? updatedInstance : null!));
1047-
}
1048-
10491043
public static void UpdateGameServer()
10501044
{
10511045
if (theInstance.instanceStatus == InstanceStatus.OFFLINE)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace BHD_ServerManager.Classes.ObjectClasses
8+
{
9+
/// <summary>
10+
/// Represents a user record from the database.
11+
/// </summary>
12+
public class UserRecord
13+
{
14+
public int UserID { get; set; }
15+
public string Username { get; set; } = string.Empty;
16+
public string PasswordHash { get; set; } = string.Empty;
17+
public string Salt { get; set; } = string.Empty;
18+
public bool IsActive { get; set; }
19+
public DateTime Created { get; set; }
20+
public DateTime? LastLogin { get; set; }
21+
public string Notes { get; set; } = string.Empty;
22+
}
23+
}

0 commit comments

Comments
 (0)