last ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user