last ...
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using xCommons.Extensions;
|
||||
using xModels.Base;
|
||||
using xModels.Dtos;
|
||||
@@ -11,6 +12,7 @@ namespace xIdentityModels.Dtos
|
||||
{
|
||||
public const string HandShake = "HandShake";
|
||||
public const string GetUserInfo = "GetUserInfo";
|
||||
public const string GetUserInfos = "GetUserInfos";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -23,7 +25,7 @@ namespace xIdentityModels.Dtos
|
||||
public string Payload { get; set; }
|
||||
public string Checksum { get; set; }
|
||||
public XDeviceDto Device { get; set; }
|
||||
public long Timestamp { get; set; }
|
||||
public string Timestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate Model ...
|
||||
@@ -37,8 +39,9 @@ namespace xIdentityModels.Dtos
|
||||
!Timestamp.IsNull() &&
|
||||
!Action.IsNullOrEmpty() &&
|
||||
(Action == XOpenActions.HandShake ||
|
||||
Action == XOpenActions.GetUserInfo) &&
|
||||
!Timestamp.FromTimestamp().IsExPired();
|
||||
Action == XOpenActions.GetUserInfo ||
|
||||
Action == XOpenActions.GetUserInfos) &&
|
||||
!Int64.Parse(Timestamp).FromTimestamp().IsExPired();
|
||||
|
||||
//
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user