mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Add Account Creation time from auth to the userdata (#6278)
Add CreatedTime from auth to the userdata Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -173,7 +173,8 @@ namespace Robust.Shared.Network
|
||||
PatronTier = joinedRespJson.UserData.PatronTier,
|
||||
HWId = legacyHwid,
|
||||
ModernHWIds = modernHWIds,
|
||||
Trust = joinedRespJson.ConnectionData!.Trust
|
||||
Trust = joinedRespJson.ConnectionData!.Trust,
|
||||
CreatedTime = joinedRespJson.UserData.CreatedTime
|
||||
};
|
||||
padSuccessMessage = false;
|
||||
type = LoginType.LoggedIn;
|
||||
@@ -378,7 +379,7 @@ namespace Robust.Shared.Network
|
||||
|
||||
// ReSharper disable ClassNeverInstantiated.Local
|
||||
private sealed record HasJoinedResponse(bool IsValid, HasJoinedUserData? UserData, HasJoinedConnectionData? ConnectionData);
|
||||
private sealed record HasJoinedUserData(string UserName, Guid UserId, string? PatronTier);
|
||||
private sealed record HasJoinedUserData(string UserName, Guid UserId, string? PatronTier, DateTime CreatedTime);
|
||||
private sealed record HasJoinedConnectionData(string[] Hwids, float Trust);
|
||||
// ReSharper restore ClassNeverInstantiated.Local
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.Text;
|
||||
using Robust.Shared.ViewVariables;
|
||||
@@ -18,6 +19,9 @@ namespace Robust.Shared.Network
|
||||
[ViewVariables]
|
||||
public string? PatronTier { get; init; }
|
||||
|
||||
[ViewVariables]
|
||||
public DateTime? CreatedTime { get; init; }
|
||||
|
||||
public ImmutableArray<byte> HWId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user