last ...
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
using System;
|
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
@@ -24,7 +23,7 @@ namespace xIdentityModels.Dtos
|
|||||||
public string Payload { get; set; }
|
public string Payload { get; set; }
|
||||||
public string Checksum { get; set; }
|
public string Checksum { get; set; }
|
||||||
public XDeviceDto Device { get; set; }
|
public XDeviceDto Device { get; set; }
|
||||||
public DateTime Timestamp { get; set; }
|
public long Timestamp { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Validate Model ...
|
/// Validate Model ...
|
||||||
@@ -36,10 +35,10 @@ namespace xIdentityModels.Dtos
|
|||||||
var result =
|
var result =
|
||||||
!Device.IsNull() &&
|
!Device.IsNull() &&
|
||||||
!Timestamp.IsNull() &&
|
!Timestamp.IsNull() &&
|
||||||
!Timestamp.IsExPired() &&
|
|
||||||
!Action.IsNullOrEmpty() &&
|
!Action.IsNullOrEmpty() &&
|
||||||
(Action == XOpenActions.HandShake ||
|
(Action == XOpenActions.HandShake ||
|
||||||
Action == XOpenActions.GetUserInfo);
|
Action == XOpenActions.GetUserInfo) &&
|
||||||
|
!Timestamp.FromTimestamp().IsExPired();
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user