This commit is contained in:
2025-07-17 09:28:10 +03:30
parent 24579022ea
commit 07d0fb50d3
+3 -4
View File
@@ -1,4 +1,3 @@
using System;
using xCommons.Extensions;
using xModels.Base;
using xModels.Dtos;
@@ -24,7 +23,7 @@ namespace xIdentityModels.Dtos
public string Payload { get; set; }
public string Checksum { get; set; }
public XDeviceDto Device { get; set; }
public DateTime Timestamp { get; set; }
public long Timestamp { get; set; }
/// <summary>
/// Validate Model ...
@@ -36,10 +35,10 @@ namespace xIdentityModels.Dtos
var result =
!Device.IsNull() &&
!Timestamp.IsNull() &&
!Timestamp.IsExPired() &&
!Action.IsNullOrEmpty() &&
(Action == XOpenActions.HandShake ||
Action == XOpenActions.GetUserInfo);
Action == XOpenActions.GetUserInfo) &&
!Timestamp.FromTimestamp().IsExPired();
//
return result;